From 8e332178e4c684e5df630004d2a80a89ca084791 Mon Sep 17 00:00:00 2001 From: ChrisL Date: Fri, 2 May 2008 23:09:58 +0000 Subject: [PATCH] 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 --- Editor/Sector Summary.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Editor/Sector Summary.cpp b/Editor/Sector Summary.cpp index 8a20a4b8..f50a53ea 100644 --- a/Editor/Sector Summary.cpp +++ b/Editor/Sector Summary.cpp @@ -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 +