Only print message when mission is in progress (don't spam the console).
This commit is contained in:
parent
54920dc9b3
commit
9f239085dc
|
@ -243,7 +243,7 @@ void doEntities(void)
|
||||||
battle.numAllies = (battle.isEpic) ? numAllies : numActiveAllies;
|
battle.numAllies = (battle.isEpic) ? numAllies : numActiveAllies;
|
||||||
battle.numEnemies = (battle.isEpic) ? numEnemies : numActiveEnemies;
|
battle.numEnemies = (battle.isEpic) ? numEnemies : numActiveEnemies;
|
||||||
|
|
||||||
if (battle.stats[STAT_TIME] % (FPS * 30) == 0)
|
if (battle.status == MS_IN_PROGRESS && battle.stats[STAT_TIME] % (FPS * 30) == 0)
|
||||||
{
|
{
|
||||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "numEnemies=%d, numActiveEnemies=%d, hasThreats=%d", numEnemies, numActiveEnemies, battle.hasThreats);
|
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "numEnemies=%d, numActiveEnemies=%d, hasThreats=%d", numEnemies, numActiveEnemies, battle.hasThreats);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue