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