mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Add EDUKE32_PREDICT_FALSE to EVENT_ANIMATESPRITES check in G_SaveMapState() and G_RestoreMapState()
git-svn-id: https://svn.eduke32.com/eduke32@7632 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
92174a0cf9
commit
e2f43a59a7
1 changed files with 2 additions and 2 deletions
|
@ -6665,7 +6665,7 @@ void G_SaveMapState(void)
|
||||||
|
|
||||||
// If we're in EVENT_ANIMATESPRITES, we'll be saving pointer values to disk :-/
|
// If we're in EVENT_ANIMATESPRITES, we'll be saving pointer values to disk :-/
|
||||||
#if !defined LUNATIC
|
#if !defined LUNATIC
|
||||||
if (g_currentEvent == EVENT_ANIMATESPRITES)
|
if (EDUKE32_PREDICT_FALSE(g_currentEvent == EVENT_ANIMATESPRITES))
|
||||||
initprintf("Line %d: savemapstate called from EVENT_ANIMATESPRITES. WHY?\n", g_errorLineNum);
|
initprintf("Line %d: savemapstate called from EVENT_ANIMATESPRITES. WHY?\n", g_errorLineNum);
|
||||||
#endif
|
#endif
|
||||||
Bmemcpy(&save->spriteext[0],&spriteext[0],sizeof(spriteext_t)*MAXSPRITES);
|
Bmemcpy(&save->spriteext[0],&spriteext[0],sizeof(spriteext_t)*MAXSPRITES);
|
||||||
|
@ -6804,7 +6804,7 @@ void G_RestoreMapState(void)
|
||||||
// If we're restoring from EVENT_ANIMATESPRITES, all spriteext[].tspr
|
// If we're restoring from EVENT_ANIMATESPRITES, all spriteext[].tspr
|
||||||
// will be overwritten, so NULL them.
|
// will be overwritten, so NULL them.
|
||||||
#if !defined LUNATIC
|
#if !defined LUNATIC
|
||||||
if (g_currentEvent == EVENT_ANIMATESPRITES)
|
if (EDUKE32_PREDICT_FALSE(g_currentEvent == EVENT_ANIMATESPRITES))
|
||||||
{
|
{
|
||||||
initprintf("Line %d: loadmapstate called from EVENT_ANIMATESPRITES. WHY?\n",g_errorLineNum);
|
initprintf("Line %d: loadmapstate called from EVENT_ANIMATESPRITES. WHY?\n",g_errorLineNum);
|
||||||
for (native_t i=0; i<MAXSPRITES; i++)
|
for (native_t i=0; i<MAXSPRITES; i++)
|
||||||
|
|
Loading…
Reference in a new issue