Fix objects being draggable when there is no room

This commit is contained in:
elasota
2021-03-08 21:59:11 -05:00
parent 0931f25f23
commit 2fe1ea2ee7

View File

@@ -1963,6 +1963,12 @@ void GetThisRoomsObjRects (void)
if ((noRoomAtAll) || (!houseUnlocked))
{
// clear object handles so they're not draggable
QSetRect(&leftStartGliderDest, 0, 0, 0, 0);
QSetRect(&rightStartGliderDest, 0, 0, 0, 0);
for (i = 0; i < kMaxRoomObs; i++)
QSetRect(&roomObjectRects[i], 0, 0, 0, 0);
return;
}
else