mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
32e8726a98
commit
578b4eaa44
|
@ -827,9 +827,8 @@ void get_argument_from_thought(rct_peep_thought thought, uint32* argument_1, uin
|
||||||
int esi = 0x9AC86C;
|
int esi = 0x9AC86C;
|
||||||
|
|
||||||
if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) == 1){
|
if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) == 1){
|
||||||
uint32 item = thought.item;
|
rct_ride* ride = &(RCT2_ADDRESS(RCT2_ADDRESS_RIDE_LIST,rct_ride)[thought.item]);
|
||||||
item *= 0x260;
|
esi = &(ride->var_4A);
|
||||||
esi = 0x1362942 + item;
|
|
||||||
}
|
}
|
||||||
else if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) == 2){
|
else if ((RCT2_ADDRESS(0x981DB1, uint16)[thought.type] & 0xFF) == 2){
|
||||||
if (thought.item < 0x20){
|
if (thought.item < 0x20){
|
||||||
|
|
Loading…
Reference in New Issue