diff --git a/Laptop/mercs.cpp b/Laptop/mercs.cpp index ea1550d7..443db7f7 100644 --- a/Laptop/mercs.cpp +++ b/Laptop/mercs.cpp @@ -363,9 +363,81 @@ BOOLEAN LoadNewMercsFromLoadGameFile( HWFILE hFile ) return( FALSE ); } + // make sure that gubMercArray (the list of mercs for M.E.R.C website) is populated with + // the same mercs as gConditionsForMercAvailability that we just read from the savegame + RevaluateMercArray(); + return( TRUE ); } +// silversurfer: this function checks if gubMercArray contains the same list of mercs as gConditionsForMercAvailability +// if not there will be problems with display of mercs on M.E.R.C website so we will force an update +void RevaluateMercArray() +{ + UINT8 i; + + NUMBER_OF_MERCS = 0; + LAST_MERC_ID = -1; + NUMBER_OF_BAD_MERCS = -1; + + // first clear gubMercArray + for ( i=0; i