From 206029cc7b74eec12bf8437cfa349133c510fb0e Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Wed, 30 Jul 2014 19:57:51 +0100 Subject: [PATCH] Fixed compile error added reference to address --- src/viewport.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/viewport.c b/src/viewport.c index 63e24b33ec..59e250d25c 100644 --- a/src/viewport.c +++ b/src/viewport.c @@ -272,11 +272,15 @@ void sub_0x68615B(int ebp){ * rct2: 0x0069E8B0 */ void sub_0x69E8B0(int eax, int ecx){ + rct_drawpixelinfo* dpi; + RCT2_CALLPROC_X(0x69E8B0, eax, 0, ecx, 0, 0, 0, 0); + return; + if (RCT2_GLOBAL(0x9DEA6F,uint8) & 1) return; - rct_drawpixelinfo* dpi = RCT2_GLOBAL(0x140E9A8,rct_drawpixelinfo*); + dpi = RCT2_GLOBAL(0x140E9A8,rct_drawpixelinfo*); - if (RCT2_GLOBAL(0x141E9E4,uint16) & 0x4000)return; + if (RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_VIEWPORT_FLAGS, uint16) & 0x4000)return; if (dpi->zoom_level > 2) return; @@ -289,7 +293,7 @@ void sub_0x69E8B0(int eax, int ecx){ if (eax == 0xFFFF) return; //0x69E915 - RCT2_CALLPROC_X(0x69E8B0, eax, 0, ecx, 0, 0, 0, 0); + } /**