I say I think, because I haven't tested it extensively for potential bugs / side-effects. Anyway, no crash occurred.
Anyone who is willing to spend some time on testing it and finds a glitch ( I haven't, after 4 hours of testing), please provide some feedback.
The original code:
Code: Select all
6FC62441 |. 8A41 6D MOV AL,BYTE PTR DS:[ECX+6D] get difficulty from ptGame
6FC62444 |. 84C0 TEST AL,AL
6FC62446 |. 0F85 AD000000 JNZ D2Game.6FC624F9 nightmare / hell > don't use UMon columns
this below is accessed only in Normal
6FC624A2 |> \0FBF8443 9A00>MOVSX EAX,WORD PTR DS:[EBX+EAX*2+9A] get mon index from UMon column
Code: Select all
6FC62441 90 NOP
6FC62442 90 NOP
6FC62443 90 NOP
6FC62444 90 NOP
6FC62445 90 NOP
6FC62446 90 NOP
6FC62447 90 NOP
6FC62448 90 NOP
6FC62449 90 NOP
6FC6244A 90 NOP
6FC6244B 90 NOP