mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Expanded feature: Militia Strategic Movement is turned on with ALLOW_MILITIA_STRATEGIC_COMMAND set to TRUE and allows plotting paths for the militia just like for merc squads.
GameDir >= r2204 is recommended. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7727 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "MessageBoxScreen.h"
|
||||
#include "Quests.h"
|
||||
#include "Creature Spreading.h"
|
||||
#include "Queen Command.h" // added by Flugente
|
||||
#endif
|
||||
|
||||
#ifdef JA2UB
|
||||
@@ -307,12 +308,14 @@ BOOLEAN InternalInitSectorExitMenu( UINT8 ubDirection, INT32 sAdditionalData )//
|
||||
if( gTacticalStatus.fEnemyInSector )
|
||||
{
|
||||
if( gExitDialog.fMultipleSquadsInSector )
|
||||
{ //We have multiple squads in a hostile sector. That means that we can't load the adjacent sector.
|
||||
{
|
||||
//We have multiple squads in a hostile sector. That means that we can't load the adjacent sector.
|
||||
gExitDialog.fGotoSectorDisabled = TRUE;
|
||||
gExitDialog.fGotoSector = FALSE;
|
||||
}
|
||||
else if( GetNumberOfMilitiaInSector( gWorldSectorX, gWorldSectorY, gbWorldSectorZ ) )
|
||||
{ //Leaving this sector will result in militia being forced to fight the battle, can't load adjacent sector.
|
||||
else if ( gbWorldSectorZ <= 0 && NumNonPlayerTeamMembersInSector( gWorldSectorX, gWorldSectorY, MILITIA_TEAM ) )
|
||||
{
|
||||
//Leaving this sector will result in militia being forced to fight the battle, can't load adjacent sector.
|
||||
gExitDialog.fGotoSectorDisabled = TRUE;
|
||||
gExitDialog.fGotoSector = FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user