From e69b3540559b09a103c9a6317b04602d64269b81 Mon Sep 17 00:00:00 2001 From: Duncan Date: Fri, 30 May 2014 12:42:39 +0100 Subject: [PATCH] Added a small bit more to draw_string --- src/gfx.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/gfx.c b/src/gfx.c index 3250927a68..1f520efaa0 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -1527,7 +1527,30 @@ void gfx_draw_string(rct_drawpixelinfo *dpi, char *format, int colour, int x, in } eax = edx; eax += 0x13; - //0x68285a + if ( eax <= dpi->y)){ + //jmp 0x682B63 + RCT2_CALLPROC_X(0x00682702, colour, 0, x, y, (int)format, (int)dpi, 0); + return; + } + eax = dpi->y; + eax += dpi->height; + if (eax <= edx){ + //jmp 0x682B63 + RCT2_CALLPROC_X(0x00682702, colour, 0, x, y, (int)format, (int)dpi, 0); + return; + } + eax = *(*(uint8)esi); + esi++; + if (!eax)return; + if ((uint32)eax < 0x9c){ + if((uint32)eax >= 0x8e){ + //jmp 0x682a2d + RCT2_CALLPROC_X(0x00682702, colour, 0, x, y, (int)format, (int)dpi, 0); + return; + } + } + eax -= 0x20; + //0x68288a RCT2_CALLPROC_X(0x00682702, colour, 0, x, y, (int)format, (int)dpi, 0); return;