mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Silence nPlayerSprite check in DoKenTest() as this can fail in valid situations, such as in RestartPlayer() while the player is still being set up.
This commit is contained in:
parent
de5aa31674
commit
cdf44030d7
1 changed files with 1 additions and 2 deletions
|
@ -1031,10 +1031,9 @@ void PlayAlert(const char *str)
|
|||
|
||||
void DoKenTest()
|
||||
{
|
||||
int nPlayerSprite = PlayerList[0].nSprite; // CHECKME
|
||||
int nPlayerSprite = PlayerList[0].nSprite;
|
||||
if ((unsigned int)nPlayerSprite >= kMaxSprites)
|
||||
{
|
||||
initprintf("DoKenTest: (unsigned int)nPlayerSprite >= kMaxSprites)\n");
|
||||
return;
|
||||
}
|
||||
int nSector = sprite[nPlayerSprite].sectnum;
|
||||
|
|
Loading…
Reference in a new issue