mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- fixed: ValidateSprite did not clear bugged sprites if debug output was enabled.
This commit is contained in:
parent
4e30ba339b
commit
14613f2f50
1 changed files with 2 additions and 2 deletions
|
@ -250,14 +250,14 @@ void ValidateSprite(spritetype& spr)
|
|||
Printf("Sprite #%d (%d,%d) has invalid picnum %d.\n", index, spr.x, spr.y, spr.picnum);
|
||||
bugged = true;
|
||||
}
|
||||
else if ((unsigned)spr.sectnum >= (unsigned)numsectors)
|
||||
else if (!validSectorIndex(spr.sectnum))
|
||||
{
|
||||
int sectnum = -1;
|
||||
updatesector(spr.x, spr.y, §num);
|
||||
bugged = sectnum < 0;
|
||||
|
||||
if (!DPrintf(DMSG_WARNING, "Sprite #%d (%d,%d) with invalid sector %d was corrected to sector %d\n", index, spr.x, spr.y, spr.sectnum, sectnum))
|
||||
{
|
||||
bugged = sectnum < 0;
|
||||
if (bugged) Printf("Sprite #%d (%d,%d) with invalid sector %d\n", index, spr.x, spr.y, spr.sectnum);
|
||||
}
|
||||
spr.sectnum = sectnum;
|
||||
|
|
Loading…
Reference in a new issue