Various improvements toward getting high scores working again.

This commit is contained in:
elasota
2020-02-02 01:38:38 -05:00
parent 7cb6994f90
commit 265db139c8
48 changed files with 729 additions and 488 deletions

View File

@@ -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++;
}
}