mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +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()
|
void DoKenTest()
|
||||||
{
|
{
|
||||||
int nPlayerSprite = PlayerList[0].nSprite; // CHECKME
|
int nPlayerSprite = PlayerList[0].nSprite;
|
||||||
if ((unsigned int)nPlayerSprite >= kMaxSprites)
|
if ((unsigned int)nPlayerSprite >= kMaxSprites)
|
||||||
{
|
{
|
||||||
initprintf("DoKenTest: (unsigned int)nPlayerSprite >= kMaxSprites)\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int nSector = sprite[nPlayerSprite].sectnum;
|
int nSector = sprite[nPlayerSprite].sectnum;
|
||||||
|
|
Loading…
Reference in a new issue