mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix little bug in peep thought updates. Fix compile issues
This commit is contained in:
@@ -103,7 +103,7 @@ static void peep_update(rct_peep *peep)
|
||||
peep->thoughts[i].var_2++;
|
||||
ebp--;
|
||||
}
|
||||
} else if (peep->thoughts[i].var_2 >= 0) {
|
||||
} else if (peep->thoughts[i].var_2 > 1) {
|
||||
if (++peep->thoughts[i].var_3 > 255) {
|
||||
if (++peep->thoughts[i].var_3 >= 28) {
|
||||
peep->var_45 |= 1;
|
||||
|
||||
@@ -200,7 +200,7 @@ enum PEEP_STATE {
|
||||
PEEP_STATE_SITTING = 8,
|
||||
PEEP_STATE_PICKED = 9,
|
||||
PEEP_STATE_PATROLLING = 10, // Not sure
|
||||
PEEP_STATE_MOPING = 11,
|
||||
PEEP_STATE_MOWING = 11,
|
||||
PEEP_STATE_SWEEPING = 12,
|
||||
PEEP_STATE_ENTERING_PARK = 13,
|
||||
PEEP_STATE_LEAVING_PARK = 14,
|
||||
|
||||
@@ -841,11 +841,11 @@ void get_arguments_from_thought(rct_peep_thought thought, uint32* argument_1, ui
|
||||
}
|
||||
else if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) & 4){
|
||||
if (thought.item < 0x20){
|
||||
RCT2_GLOBAL(0x9AC86C, uint16) = thought.item + STR_SINGULAR_ITEM_START;
|
||||
RCT2_GLOBAL(0x9AC86C, uint16) = thought.item + STR_ITEM_SINGULAR_START;
|
||||
}
|
||||
else
|
||||
{
|
||||
RCT2_GLOBAL(0x9AC86C, uint16) = thought.item + STR_SINGULAR_ITEM2_START;
|
||||
RCT2_GLOBAL(0x9AC86C, uint16) = thought.item + STR_ITEM2_SINGULAR_START;
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user