Built in safety check so that global offensives cannot be called more than once.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8123 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-03-25 14:30:04 +00:00
parent ad95d97bf7
commit 3a0d52e882
3 changed files with 15 additions and 4 deletions
+5
View File
@@ -5254,6 +5254,11 @@ void ExecuteStrategicAIAction( UINT16 usActionCode, INT16 sSectorX, INT16 sSecto
giReinforcementPool = max( giReinforcementPool, 0 );
}
if ( usActionCode == NPC_ACTION_GLOBAL_OFFENSIVE_1 )
SetFactTrue( FACT_GLOBAL_OFFENSIVE_1_ORDERED );
else if ( usActionCode == NPC_ACTION_GLOBAL_OFFENSIVE_2 )
SetFactTrue( FACT_GLOBAL_OFFENSIVE_2_ORDERED );
}
break;