Replaced reinforcement functions to allow non-enemy movement groups to reinforce battles

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7712 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2015-01-06 21:11:36 +00:00
parent 474df6ffb5
commit bb95be057b
7 changed files with 320 additions and 73 deletions
+3 -2
View File
@@ -7055,12 +7055,13 @@ BOOLEAN CheckForEndOfBattle( BOOLEAN fAnEnemyRetreated )
//NEW (Nov 24, 98) by Kris
if( !gbWorldSectorZ && fBattleWon )
{ //Check to see if more enemy soldiers exist in the strategic layer
{
//Check to see if more enemy soldiers exist in the strategic layer
//It is possible to have more than 20 enemies in a sector. By failing here,
//it gives the engine a chance to add these soldiers as reinforcements. This
//is naturally handled.
AddPossiblePendingEnemiesToBattle();
if( gfPendingEnemies )
if ( gfPendingNonPlayerTeam[ENEMY_TEAM] )
{
fBattleWon = FALSE;
}