Code: Select all
insertTramTrackIntoRemove:
call [gettileinfo] ;get the standard tile info
test byte [esp+4], 80h ;test the trams flag, as saved by our caller
jz .dontLoadTramArray
cmp byte [demolishroadflag],1 ;are we dynamiting? or removing?
//je .dontLoadTramArray ;if we're dynamiting, then just continue, all gets removed
cmp bl, 28h
je .removetramfromstation
mov byte dh, [landscape3+esi*2] ;trams... move in the current tram tracks
Code: Select all
jz .dontLoadTramArray
I haven't tried attaching ollydebug to the Patch yet as I am not sure how to use it's output for working out what goes on when I do the actions that cause the bug.