mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Various improvements toward getting high scores working again.
This commit is contained in:
@@ -84,16 +84,17 @@ void DrawBanner (Point *topLeft)
|
||||
short CountStarsInHouse (void)
|
||||
{
|
||||
short i, h, numRooms, numStars;
|
||||
housePtr housePtr = *thisHouse;
|
||||
|
||||
numStars = 0;
|
||||
|
||||
numRooms = (*thisHouse)->nRooms;
|
||||
numRooms = housePtr->nRooms;
|
||||
for (i = 0; i < numRooms; i++)
|
||||
{
|
||||
if ((*thisHouse)->rooms[i].suite != kRoomIsEmpty)
|
||||
if (housePtr->rooms[i].suite != kRoomIsEmpty)
|
||||
for (h = 0; h < kMaxRoomObs; h++)
|
||||
{
|
||||
if ((*thisHouse)->rooms[i].objects[h].what == kStar)
|
||||
if (housePtr->rooms[i].objects[h].what == kStar)
|
||||
numStars++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user