From b6274a72a0deadae5cf70d3131bc9c47eff320dc Mon Sep 17 00:00:00 2001 From: Duncan Date: Wed, 18 Jun 2014 16:35:26 +0100 Subject: [PATCH] Added note about possible issue in draw_sprite. --- src/gfx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gfx.c b/src/gfx.c index abc96a258c..7c59552edf 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -922,7 +922,8 @@ void gfx_draw_sprite(rct_drawpixelinfo *dpi, int image_id, int x, int y) eax >>= 19; //push edx/y eax &= 0x1F; - ebp = RCT2_GLOBAL(ebp * 4 + 0x97FCBC, uint32); + ebp = RCT2_GLOBAL(ebp * 4 + 0x97FCBC, uint32); //ebp has not been set to anything before this! ?? + //Possibly another variable input?! eax = RCT2_GLOBAL(eax * 4 + 0x97FCBC, uint32); ebp <<= 0x4; eax <<= 0x4;