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.
This commit is contained in:
Duncan 2014-06-26 16:18:38 +01:00
parent 32e8726a98
commit 578b4eaa44
1 changed files with 2 additions and 3 deletions

View File

@ -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){