mirror of https://github.com/OpenRCT2/OpenRCT2.git
Name sub_693BAB()
This commit is contained in:
parent
d2fa8bab14
commit
03286af22b
|
@ -130,7 +130,7 @@ static sint32 peep_empty_container_standard_flag(rct_peep* peep);
|
||||||
static sint32 peep_empty_container_extra_flag(rct_peep* peep);
|
static sint32 peep_empty_container_extra_flag(rct_peep* peep);
|
||||||
static sint32 peep_should_find_bench(rct_peep* peep);
|
static sint32 peep_should_find_bench(rct_peep* peep);
|
||||||
static void peep_stop_purchase_thought(rct_peep* peep, uint8 ride_type);
|
static void peep_stop_purchase_thought(rct_peep* peep, uint8 ride_type);
|
||||||
static void sub_693BAB(rct_peep* peep);
|
static void peep_set_action_sprite_type(rct_peep* peep);
|
||||||
static sint32 peep_perform_next_action(rct_peep *peep);
|
static sint32 peep_perform_next_action(rct_peep *peep);
|
||||||
static void peep_spend_money(rct_peep *peep, money16 *peep_expend_type, money32 amount);
|
static void peep_spend_money(rct_peep *peep, money16 *peep_expend_type, money32 amount);
|
||||||
static void peep_set_has_ridden(rct_peep *peep, sint32 rideIndex);
|
static void peep_set_has_ridden(rct_peep *peep, sint32 rideIndex);
|
||||||
|
@ -1665,12 +1665,12 @@ static void set_sprite_type(rct_peep* peep, uint8 type){
|
||||||
if (peep->state == PEEP_STATE_SITTING){
|
if (peep->state == PEEP_STATE_SITTING){
|
||||||
peep->action = PEEP_ACTION_NONE_1;
|
peep->action = PEEP_ACTION_NONE_1;
|
||||||
peep->next_action_sprite_type = 7;
|
peep->next_action_sprite_type = 7;
|
||||||
sub_693BAB(peep);
|
peep_set_action_sprite_type(peep);
|
||||||
}
|
}
|
||||||
if (peep->state == PEEP_STATE_WATCHING){
|
if (peep->state == PEEP_STATE_WATCHING){
|
||||||
peep->action = PEEP_ACTION_NONE_1;
|
peep->action = PEEP_ACTION_NONE_1;
|
||||||
peep->next_action_sprite_type = 2;
|
peep->next_action_sprite_type = 2;
|
||||||
sub_693BAB(peep);
|
peep_set_action_sprite_type(peep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2219,7 +2219,7 @@ static void peep_update_sitting(rct_peep* peep){
|
||||||
invalidate_sprite_2((rct_sprite*)peep);
|
invalidate_sprite_2((rct_sprite*)peep);
|
||||||
peep->action = 254;
|
peep->action = 254;
|
||||||
peep->next_action_sprite_type = 7;
|
peep->next_action_sprite_type = 7;
|
||||||
sub_693BAB(peep);
|
peep_set_action_sprite_type(peep);
|
||||||
|
|
||||||
peep->sub_state++;
|
peep->sub_state++;
|
||||||
|
|
||||||
|
@ -5243,7 +5243,7 @@ static void peep_update_watching(rct_peep* peep){
|
||||||
peep->action = 0xFE;
|
peep->action = 0xFE;
|
||||||
peep->next_action_sprite_type = 2;
|
peep->next_action_sprite_type = 2;
|
||||||
|
|
||||||
sub_693BAB(peep);
|
peep_set_action_sprite_type(peep);
|
||||||
|
|
||||||
peep->sub_state++;
|
peep->sub_state++;
|
||||||
|
|
||||||
|
@ -7843,7 +7843,7 @@ void peep_set_map_tooltip(rct_peep *peep)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void sub_693BAB(rct_peep* peep) {
|
void peep_set_action_sprite_type(rct_peep* peep) {
|
||||||
// TBD: Add nextActionSpriteType as function parameter and make peep->next_action_sprite_type obsolete?
|
// TBD: Add nextActionSpriteType as function parameter and make peep->next_action_sprite_type obsolete?
|
||||||
uint8 nextActionSpriteType = peep->next_action_sprite_type;
|
uint8 nextActionSpriteType = peep->next_action_sprite_type;
|
||||||
if (nextActionSpriteType != peep->action_sprite_type) {
|
if (nextActionSpriteType != peep->action_sprite_type) {
|
||||||
|
|
|
@ -539,7 +539,7 @@ typedef struct rct_peep {
|
||||||
// Normally 0, 1 for carrying sliding board on spiral slide ride, 2 for carrying lawn mower
|
// Normally 0, 1 for carrying sliding board on spiral slide ride, 2 for carrying lawn mower
|
||||||
uint8 special_sprite; // 0x6D
|
uint8 special_sprite; // 0x6D
|
||||||
uint8 action_sprite_type; // 0x6E
|
uint8 action_sprite_type; // 0x6E
|
||||||
// Seems to be used like a local variable, as it's always set before calling sub_693BAB, which reads this again
|
// Seems to be used like a local variable, as it's always set before calling peep_set_action_sprite_type, which reads this again
|
||||||
uint8 next_action_sprite_type; // 0x6F
|
uint8 next_action_sprite_type; // 0x6F
|
||||||
uint8 action_sprite_image_offset; // 0x70
|
uint8 action_sprite_image_offset; // 0x70
|
||||||
uint8 action; // 0x71
|
uint8 action; // 0x71
|
||||||
|
|
|
@ -433,7 +433,7 @@ typedef struct rct1_peep {
|
||||||
// Normally 0, 1 for carrying sliding board on spiral slide ride, 2 for carrying lawn mower
|
// Normally 0, 1 for carrying sliding board on spiral slide ride, 2 for carrying lawn mower
|
||||||
uint8 special_sprite; // 0x6D
|
uint8 special_sprite; // 0x6D
|
||||||
uint8 action_sprite_type; // 0x6E
|
uint8 action_sprite_type; // 0x6E
|
||||||
// Seems to be used like a local variable, as it's always set before calling sub_693BAB, which reads this again
|
// Seems to be used like a local variable, as it's always set before calling peep_set_action_sprite_type, which reads this again
|
||||||
uint8 next_action_sprite_type; // 0x6F
|
uint8 next_action_sprite_type; // 0x6F
|
||||||
uint8 action_sprite_image_offset; // 0x70
|
uint8 action_sprite_image_offset; // 0x70
|
||||||
uint8 action; // 0x71
|
uint8 action; // 0x71
|
||||||
|
|
Loading…
Reference in New Issue