From ad29a7006bb0c3d64030d9db5cd7c483021a2fd9 Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Sun, 14 Aug 2016 00:38:14 +0200 Subject: [PATCH] Integrate data at 0x00981D7C, 0x00981D7E --- src/peep/peep.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index 9f4226b397..4094fb3ffc 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -1472,6 +1472,14 @@ static void peep_check_cant_find_exit(rct_peep* peep){ peep->peep_is_lost_countdown = 90; } +/** rct2: 0x00981D7C, 0x00981D7E */ +const rct_xy16 word_981D7C[4] = { + { -2, 0 }, + { 0, 2 }, + { 2, 0 }, + { 0, -2 } +}; + /** * * rct2: 0x6939EB @@ -1517,8 +1525,8 @@ static int peep_update_action(sint16* x, sint16* y, sint16* xy_distance, rct_pee } } peep->sprite_direction = direction; - *x = peep->x + RCT2_ADDRESS(0x981D7C, sint16)[direction / 4]; - *y = peep->y + RCT2_ADDRESS(0x981D7E, sint16)[direction / 4]; + *x = peep->x + word_981D7C[direction / 4].x; + *y = peep->y + word_981D7C[direction / 4].y; peep->no_action_frame_no++; const rct_sprite_image * edi = g_sprite_entries[peep->sprite_type].sprite_image; const uint8* _edi = (edi[peep->action_sprite_type]).unkn_04;