mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Massive effort to reign in militia problem. Still has issues :(
Fix: If only some of mercs go to a lower level (mine, basement, etc) but do not choose to "GO TO SECTOR", sector is still inaccessible from strategic map. However, watch for triggers that might happen on first visit to a sector, that fail. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1076 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -85,7 +85,9 @@ INT32 giMaxEnemiesToRender = 40;
|
||||
INT32 giMaxMilitiaToRender = 20;//Changes depending on merc amount
|
||||
|
||||
extern UINT8 gubReinforcementMinEnemyStaticGroupSize;
|
||||
extern BOOLEAN gfStrategicMilitiaChangesMade;
|
||||
|
||||
extern void ResetMilitia();
|
||||
extern BOOLEAN AutoReload( SOLDIERTYPE *pSoldier );
|
||||
extern HVSURFACE ghFrameBuffer;
|
||||
BOOLEAN gfTransferTacticalOppositionToAutoResolve = FALSE;
|
||||
@@ -2469,6 +2471,7 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Autoresolve2");
|
||||
UnloadButtonImage( gpAR->iButtonImage[ i ] );
|
||||
RemoveButton( gpAR->iButton[ i ] );
|
||||
}
|
||||
|
||||
if( fDeleteForGood )
|
||||
{ //Warp the game time accordingly
|
||||
|
||||
@@ -2501,6 +2504,11 @@ DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"Autoresolve2");
|
||||
gubSectorIDOfCreatureAttack = 0;
|
||||
}
|
||||
//VtPauseSampling();
|
||||
|
||||
if (gfStrategicMilitiaChangesMade)
|
||||
{
|
||||
ResetMilitia();
|
||||
}
|
||||
}
|
||||
|
||||
void PauseButtonCallback( GUI_BUTTON *btn, INT32 reason )
|
||||
|
||||
Reference in New Issue
Block a user