mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user