Changed litter var_24 to unsigned

This commit is contained in:
Duncan Frost 2014-05-07 19:46:30 +01:00
parent 4e4fa93e14
commit bfd4dbcbe9
2 changed files with 2 additions and 3 deletions

View File

@ -186,7 +186,7 @@ int calculate_park_rating()
litter = &(RCT2_ADDRESS(RCT2_ADDRESS_SPRITE_LIST, rct_sprite)[sprite_idx].litter);
// Guessing this eliminates recently dropped litter
if ((uint32)(litter->var_24 - RCT2_GLOBAL(0x00F663AC, sint32)) >= 7680)
if (litter->var_24 - RCT2_GLOBAL(0x00F663AC, uint32) >= 7680)
num_litter++;
}
result -= 600 - (4 * (150 - min(150, num_litter)));
@ -194,7 +194,6 @@ int calculate_park_rating()
result -= RCT2_GLOBAL(0x0135882E, sint16);
result = clamp(0, result, 999);
//934
return result;
}

View File

@ -43,7 +43,7 @@ typedef struct {
uint32 pad_00;
uint16 next; // 0x04
uint8 pad_06[0x1E];
sint32 var_24;
uint32 var_24;
} rct_litter;
typedef struct {