mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
BUGZILLA #549: Fixed mercs not showing up on MERC website
o Workaround for old bugged savegames: If passed day 30, make merc available on MERC website o Fixed problems with merc not showing up after Larry was added o Fixed white background graphic when MERC website is down (broken link) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4583 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5058,6 +5058,28 @@ BOOLEAN LoadSavedGame( int ubSavedGameID )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// WANNE: There were some problems in older savegames, that the MERC are not available on the merc site. Just recalculate the correct number of mercs
|
||||
// Players that have a bugged savegame and are above Day 50 get ALL Merc on the website!
|
||||
if(guiCurrentSaveGameVersion < FIXED_MERC_NOT_AVAILABLE_ON_MERC_WEBSITE)
|
||||
{
|
||||
// WORKAROUND: If player passed day 30, make merc available on MERC website!
|
||||
if (LaptopSaveInfo.gubLastMercIndex <= 6 && GetWorldDay() >= 30)
|
||||
{
|
||||
LaptopSaveInfo.gubLastMercIndex = 0;
|
||||
|
||||
for(UINT8 i=0; i<NUM_PROFILES; i++)
|
||||
{
|
||||
if ( gConditionsForMercAvailability[i].ProfilId != 0 && (gConditionsForMercAvailability[i].NewMercsAvailable == TRUE || gConditionsForMercAvailability[i].StartMercsAvailable == TRUE ))
|
||||
{
|
||||
LaptopSaveInfo.gubLastMercIndex ++;
|
||||
}
|
||||
}
|
||||
|
||||
if (LaptopSaveInfo.gubLastMercIndex > 0)
|
||||
LaptopSaveInfo.gubLastMercIndex = LaptopSaveInfo.gubLastMercIndex - 1;
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user