From 2cd16a6fe52d66014aa791ba8b8e8e0f7d922c84 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 4 Sep 2016 21:47:05 +0100 Subject: [PATCH] Remove unread variable --- src/peep/peep.c | 4 ---- src/windows/about.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index a39bcdbc24..ee05ace125 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -11525,8 +11525,6 @@ static int peep_compare(const void *sprite_index_a, const void *sprite_index_b) */ void peep_update_name_sort(rct_peep *peep) { - RCT2_GLOBAL(0x009C383C, uint8) = 49; - // Remove peep from sprite list uint16 nextSpriteIndex = peep->next; uint16 prevSpriteIndex = peep->previous; @@ -11579,8 +11577,6 @@ void peep_update_name_sort(rct_peep *peep) peep->previous = SPRITE_INDEX_NULL; finish_peep_sort: - RCT2_GLOBAL(0x009C383C, uint8) = 48; - // This is required at the moment because this function reorders peeps in the sprite list openrct2_reset_object_tween_locations(); } diff --git a/src/windows/about.c b/src/windows/about.c index 2b8ff85a02..233a3f51d1 100644 --- a/src/windows/about.c +++ b/src/windows/about.c @@ -134,11 +134,9 @@ static void window_about_paint(rct_window *w, rct_drawpixelinfo *dpi) y = w->y + 17; // Version - RCT2_GLOBAL(0x009C383C, uint8) = 49; gfx_draw_string_centred(dpi, STR_VERSION_X, x, y, 0, RCT2_ADDRESS(0x009E2D28, void)); // Credits - RCT2_GLOBAL(0x009C383C, uint8) = 48; y += 10; gfx_draw_string_centred(dpi, STR_COPYRIGHT_CS, x, y, 0, RCT2_ADDRESS(0x009E2D28, void)); y += 79;