TINSEL: numPolygons fixes for big-endian systems #2995
When testing the original V0 Floppy Demo of Disworld (
It appears that numPolygons was left uninitialized, and so it was set to a big value which would trigger this assertion.
Looking at the changes done in commit 24b77f1, I think the original intent was to use the
Tested with the various available Discworld1 demos on a big-endian system.
…mo V0 numPolygons was left uninitialized for the original V0 demo, so it could be set to a big value which would trigger assert(numPolys <= MAX_POLY) in MaxPolygons() and immediately crash the game. This restores the implicit behavior before commit 24b77f1.