Skip to content

Commit

Permalink
Fix objects being draggable when there is no room
Browse files Browse the repository at this point in the history
  • Loading branch information
elasota committed Mar 9, 2021
1 parent 0931f25 commit 2fe1ea2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GpApp/ObjectEdit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fe1ea2

Please sign in to comment.