Page 1 of 1

Summary / Systems -> "X Turn(s)" fix (+1 if exact amount)

Posted: Mon Dec 24, 2018 2:53 pm
by Spocks-cuddly-tribble
Here comes a small bug-fix for christmas. Not worth mentioning, but i thought a small contribution is better than no contribution at all. :smile:


Summary / Systems -> "X Turn(s)" fix (+1 if exact amount)

Code: Select all

at 0x40D72

8D 78 01 83 FF 01 76 25 -> 85 D2 74 01 40 89 C7 90


at 0x40E59

8D 78 01 83 FF 01 0F 86 3A FF FF FF -> 85 D2 74 01 40 89 C7 90 90 90 90 90


at 0x40EEC

8D 78 01 83 FF 01 0F 86 CF 00 00 00 -> 85 D2 74 01 40 89 C7 90 90 90 90 90


-asm- 441972, 441A59 & 441AEC

test edx, edx     // 85 D2
jz skip next      // 74 01
inc eax           // 40
mov edi, eax      // 89 C7
nop               // 90 (...)
Note: The build-queue turn prediction still has some bugs. For some reason ships show sometimes only one turn to finish (wrong).