Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 43129f5

Browse files
committed
Made MOs with scale == 0 not get detected for collisions, as it apparently was before collision updates
1 parent 8996406 commit 43129f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Managers/MovableMan.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ MOID MovableMan::GetMOIDPixel(int pixelX, int pixelY, const std::vector<int> &mo
201201

202202
const MovableObject *mo = GetMOFromID(moid);
203203
RTEAssert(mo, "Null MO found in MOID list!");
204+
if (mo && mo->GetScale() == 0) {
205+
return g_NoMOID;
206+
}
204207
if (mo && HitTestMOAtPixel(*mo, pixelX, pixelY)) {
205208
return moid;
206209
}

0 commit comments

Comments
 (0)