Fix: reinforcements do not arrive when no other enemies are present and reinforcements are ordered to be delayed.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8130 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-03-28 21:31:21 +00:00
parent 328d484b20
commit 186093923c
+6 -1
View File
@@ -178,7 +178,12 @@ void HandleTacticalEndTurn( )
if(gGameExternalOptions.gfAllowReinforcements)//dnl ch68 100913
{
((gTacticalStatus.Team[ENEMY_TEAM].bTeamActive || gTacticalStatus.Team[MILITIA_TEAM].bTeamActive) ? (guiTurnCnt++) : (guiTurnCnt = 0));
if ( gTacticalStatus.Team[ENEMY_TEAM].bTeamActive || gfPendingNonPlayerTeam[ENEMY_TEAM] ||
gTacticalStatus.Team[MILITIA_TEAM].bTeamActive || gfPendingNonPlayerTeam[MILITIA_TEAM] )
++guiTurnCnt;
else
guiTurnCnt = 0;
//Check for enemy pooling (add enemies if there happens to be more than the max in the
//current battle. If one or more slots have freed up, we can add them now.
AddPossiblePendingEnemiesToBattle();