mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
a.m32 corruption checker: also handle out-of-range picnum
git-svn-id: https://svn.eduke32.com/eduke32@1726 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f3e992b0c8
commit
93c749f2de
1 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,7 @@ definequote 23 WALL[%d].POINT2=%d out of range: sector[%d].wallptr=%d, endwall=%
|
||||||
definequote 24 WALL[%d].NEXTWALL=%d out of range: numwalls=%d!!!
|
definequote 24 WALL[%d].NEXTWALL=%d out of range: numwalls=%d!!!
|
||||||
definequote 25 WALL[%d].NEXTSECTOR=%d out of range: numsectors=%d!!!
|
definequote 25 WALL[%d].NEXTSECTOR=%d out of range: numsectors=%d!!!
|
||||||
definequote 26 SPRITE[%d].SECTNUM=%d. Expect problems!
|
definequote 26 SPRITE[%d].SECTNUM=%d. Expect problems!
|
||||||
|
definequote 27 SPRITE[%d].PICNUM=%d out of range, resetting to 0
|
||||||
|
|
||||||
define PRSCALE 1000
|
define PRSCALE 1000
|
||||||
define MAXSPECULAR 100000
|
define MAXSPECULAR 100000
|
||||||
|
@ -1075,6 +1076,13 @@ defstate corruptchk
|
||||||
qsprintf TQUOTE 26 i .sectnum
|
qsprintf TQUOTE 26 i .sectnum
|
||||||
quote TQUOTE printmessage16 TQUOTE
|
quote TQUOTE printmessage16 TQUOTE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ifge .picnum 0 ifl .picnum MAXTILES nullop else
|
||||||
|
{
|
||||||
|
qsprintf TQUOTE 27 i .picnum
|
||||||
|
quote TQUOTE printmessage16 TQUOTE
|
||||||
|
set .picnum 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ends
|
ends
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue