mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Made an adjustment to the editor so that map version checking takes place when rebuilding the DevInfo folder. This will allow maps to update properly if you switch between maps alot, while not forcing a major version update when it's not needed.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2096 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2577,9 +2577,13 @@ void LoadSummary( STR8 pSector, UINT8 ubLevel, FLOAT dMajorMapVersion )
|
||||
{
|
||||
gusNumEntriesWithOutdatedOrNoSummaryInfo++;
|
||||
//CHRISL: These will force an update basically every time the editor is loaded. What's the point of that?
|
||||
// instead, we should look at the dMajorMapVersion for this map and only load if we need to
|
||||
//ADB don't forget that these might need to be updated!!!
|
||||
//gusNumberOfMapsToBeForceUpdated++;
|
||||
//gfMustForceUpdateAllMaps = TRUE;
|
||||
if(dMajorMapVersion < gdMajorMapVersion)
|
||||
{
|
||||
gusNumberOfMapsToBeForceUpdated++;
|
||||
gfMustForceUpdateAllMaps = TRUE;
|
||||
}
|
||||
return;
|
||||
}
|
||||
fread( &temp, 1, sizeof( SUMMARYFILE ), fp );
|
||||
@@ -3155,3 +3159,4 @@ void ClearSummaryInfo()
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user