Originally Posted by
Saffith
There were three distinct issues fixed at once:
- Arguments were not validated
- Maps numbers started at 0, not 1
- Screen calculation was based on 128 screens per map, not 136
The map numbering is only a minor nuisance, but the incorrect screen calculation isn't something users should be expected to work around.
Agreed; however I don't see this change as part of https://github.com/ArmageddonGames/Z...08edffdcb999d6
or as being incorporated in the current master code:
Code:
int pos = (ri->d[0])/10000; |
int sc = (ri->d[2]/10000); |
int m = (ri->d[1]/10000)-1; |
if (curscript->version < 2) |
int layr = FFScript::whichlayer(scr); |
if(scr==(currmap*MAPSCRS+currscr)) |
ret=(combobuf[tmpscr->data[pos]].walk&15)*10000; |
ret=(combobuf[tmpscr2[layr].data[pos]].walk&15)*10000; |
else ret=(combobuf[TheMaps[scr].data[pos]].walk&15)*10000; |
break;
Do you know when the calculation was changed, and the current state (and need) for compatibility support for it?