mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Cleanup, add scanline mask builder
This commit is contained in:
@@ -226,9 +226,7 @@ void GetObjectRect (objectPtr who, Rect *itsRect)
|
||||
}
|
||||
else
|
||||
{
|
||||
HLock((Handle)thePict);
|
||||
*itsRect = (*thePict)->picFrame.ToRect();
|
||||
HUnlock((Handle)thePict);
|
||||
}
|
||||
ZeroRectCorner(itsRect);
|
||||
QOffsetRect(itsRect,
|
||||
@@ -1140,9 +1138,6 @@ short GetUpStairsRightEdge (void)
|
||||
|
||||
rightEdge = kRoomWide;
|
||||
|
||||
wasState = HGetState((Handle)thisHouse);
|
||||
HLock((Handle)thisHouse);
|
||||
|
||||
for (i = 0; i < kMaxRoomObs; i++)
|
||||
{
|
||||
thisObject = (*thisHouse)->rooms[thisRoomNumber].objects[i];
|
||||
@@ -1153,8 +1148,6 @@ short GetUpStairsRightEdge (void)
|
||||
}
|
||||
}
|
||||
|
||||
HSetState((Handle)thisHouse, wasState);
|
||||
|
||||
return (rightEdge);
|
||||
}
|
||||
|
||||
@@ -1168,9 +1161,6 @@ short GetDownStairsLeftEdge (void)
|
||||
|
||||
leftEdge = 0;
|
||||
|
||||
wasState = HGetState((Handle)thisHouse);
|
||||
HLock((Handle)thisHouse);
|
||||
|
||||
for (i = 0; i < kMaxRoomObs; i++)
|
||||
{
|
||||
thisObject = (*thisHouse)->rooms[thisRoomNumber].objects[i];
|
||||
@@ -1181,8 +1171,6 @@ short GetDownStairsLeftEdge (void)
|
||||
}
|
||||
}
|
||||
|
||||
HSetState((Handle)thisHouse, wasState);
|
||||
|
||||
return (leftEdge);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user