Skip to content

Commit

Permalink
im gonna kill myself why does c++ exist
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo authored Aug 27, 2024
1 parent 1b80e4d commit 64c4c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hacks/AllModesPlatformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class $modify (GJBaseGameLayer)
{
if (auto obj = p1->at(i))
{
if (obj->m_objectType == GameObjectType::WavePortal || obj->m_objectType == GameObjectType::SwingPortal)
{
if (p0->getObjectRect().intersectsRect(obj->getObjectRect()))
{
if (obj->m_objectType == GameObjectType::WavePortal || obj->m_objectType == GameObjectType::SwingPortal)
{
if(this->canBeActivatedByPlayer(p0, as<EffectGameObject*>(obj)))
{
this->playerWillSwitchMode(p0, obj);
Expand Down

0 comments on commit 64c4c4f

Please sign in to comment.