Skip to content

Commit

Permalink
Update AllModesPlatformer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo authored Aug 27, 2024
1 parent 64c4c4f commit 230b4fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Hacks/AllModesPlatformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class $modify (GJBaseGameLayer)
{
void collisionCheckObjects(PlayerObject* p0, gd::vector<GameObject*>* p1, int p2, float p3)
{
GJBaseGameLayer::collisionCheckObjects(p0, p1, p2, p3);

if (!m_isPlatformer)
return;

if (p0 && p1)
{
for (size_t i = 0; i < p1->size(); i++)
Expand Down Expand Up @@ -42,8 +47,6 @@ if (obj->m_objectType == GameObjectType::WavePortal || obj->m_objectType == Game
}
}
}

GJBaseGameLayer::collisionCheckObjects(p0, p1, p2, p3);
}

QOLMOD_MOD_HOOK("all-plat", "GJBaseGameLayer::collisionCheckObjects")
Expand Down

0 comments on commit 230b4fa

Please sign in to comment.