src/game/TacticalAI/PanicButtons.cc
static UINT32 PercentEnemiesKilled()
{
	Assert(gTacticalStatus.Team[ ENEMY_TEAM ].bMenInSector >= 0);
	UINT32 totalEnemies = static_cast<UINT32>(gTacticalStatus.Team[ ENEMY_TEAM ].bMenInSector) + gTacticalStatus.ubArmyGuysKilled;
	if (totalEnemies == 0)
	{
		SLOGW("PercentEnemiesKilled was expecting the army in the current sector");
		return 0;
	}
	return 100 * static_cast<UINT32>(gTacticalStatus.ubArmyGuysKilled) / totalEnemies;
}
/*

Who can use the panic button?
 * in tixa only the warden
 * in other places only the army

*/
Who can use the panic button.
in tixa only the warden
in other places only the army
Who can use the panic button . in tixa only the warden in other places only the army
static UINT32 PercentEnemiesKilled()
{
	Assert(gTacticalStatus.Team[ ENEMY_TEAM ].bMenInSector >= 0);
	UINT32 totalEnemies = static_cast<UINT32>(gTacticalStatus.Team[ ENEMY_TEAM ].bMenInSector) + gTacticalStatus.ubArmyGuysKilled;
	if (totalEnemies == 0)
	{
		SLOGW("PercentEnemiesKilled was expecting the army in the current sector");
		return 0;
	}
	return 100 * static_cast<UINT32>(gTacticalStatus.ubArmyGuysKilled) / totalEnemies;
}
static UINT32 PercentEnemiesKilled ( ) { Assert ( gTacticalStatus . Team [ ENEMY_TEAM ] . bMenInSector >= 0 ) ; UINT32 totalEnemies = static_cast < UINT32 > ( gTacticalStatus . Team [ ENEMY_TEAM ] . bMenInSector ) + gTacticalStatus . ubArmyGuysKilled ; if ( totalEnemies == 0 ) { SLOGW ( " " ) ; return 0 ; } return 100 * static_cast < UINT32 > ( gTacticalStatus . ubArmyGuysKilled ) / totalEnemies ; }
Who can use the panic button?
Who can use the panic button?