From 578b4eaa448fd24071c01e37bf55fb5f62142a57 Mon Sep 17 00:00:00 2001 From: Duncan Date: Thu, 26 Jun 2014 16:18:38 +0100 Subject: [PATCH] Re-factor of argument_from_thought to use ridelist Has not been tested. Could use this to work out what Var_4A and Var_4C(32bit) are. --- src/window_guest_list.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/window_guest_list.c b/src/window_guest_list.c index 6eac714474..c9c6f230ad 100644 --- a/src/window_guest_list.c +++ b/src/window_guest_list.c @@ -827,9 +827,8 @@ void get_argument_from_thought(rct_peep_thought thought, uint32* argument_1, uin int esi = 0x9AC86C; if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) == 1){ - uint32 item = thought.item; - item *= 0x260; - esi = 0x1362942 + item; + rct_ride* ride = &(RCT2_ADDRESS(RCT2_ADDRESS_RIDE_LIST,rct_ride)[thought.item]); + esi = &(ride->var_4A); } else if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) == 2){ if (thought.item < 0x20){