Fix: ASD update function not periodicaly called. This bug only exists in campaigns started before r8015.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8233 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-05-24 19:19:48 +00:00
parent c676a48cd5
commit 4e498b1a5d
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -6158,6 +6158,15 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
InitASD();
}
// Flugente: in campaigns started before ENEMY_HELICOPTERS, the periodic ASD update routine was not properly initialised. To be sure, we definetly set it up here
if ( guiCurrentSaveGameVersion < ASD_INIT_FIX )
{
// Flugente: if this a savegame from an older version where ASD didn't exist, we have to manually add the periodic event
DeleteAllStrategicEventsOfType( EVENT_ASD_UPDATE );
AddPeriodStrategicEvent( EVENT_ASD_UPDATE, 90, 0 );
}
if ( guiCurrentSaveGameVersion >= INDIVIDUAL_MILITIA )
{
uiRelEndPerc += 1;