From 935eeb06f1cf6d59578ca81fba2bc692cc82a174 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 5 Jan 2008 12:15:10 +0000 Subject: [PATCH] - Added: Automap markers are stored in savegames now. Also moved the call to AM_LevelInit to its proper place in G_DoLoadLevel, right after the call to P_SetupLevel to make it work as intended. SVN r667 (trunk) --- docs/rh-log.txt | 3 +++ src/am_map.cpp | 18 +++++++++--------- src/am_map.h | 2 ++ src/g_level.cpp | 2 ++ src/version.h | 2 +- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index fdfa61a065..1358f434ac 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,7 @@ January 5, 2008 (Changes by Graf Zahl) +- Added: Automap markers are stored in savegames now. Also moved the call + to AM_LevelInit to its proper place in G_DoLoadLevel, right after + the call to P_SetupLevel to make it work as intended. - Changed savegame versioning to use the SVN revision number instead of an arbitrarily defined value. This reduces the amount of relevant values that have to be defined in version.h to 1 (the minimum compatible savegame diff --git a/src/am_map.cpp b/src/am_map.cpp index f5e77ec33d..06af6ddc3f 100644 --- a/src/am_map.cpp +++ b/src/am_map.cpp @@ -817,8 +817,7 @@ bool AM_clearMarks () } // -// should be called at the start of every level -// right now, i figure it out myself +// called right after the level has been loaded // void AM_LevelInit () { @@ -853,15 +852,8 @@ void AM_Stop () // void AM_Start () { - static char lastmap[sizeof(level.mapname)] = ""; - if (!stopped) AM_Stop(); stopped = false; - if (strcmp (lastmap, level.mapname)) - { - AM_LevelInit(); - strcpy (lastmap, level.mapname); - } AM_initVariables(); AM_loadPics(); } @@ -1822,3 +1814,11 @@ void AM_Drawer () AM_drawMarks(); } +void AM_SerializeMarkers(FArchive &arc) +{ + arc << markpointnum; + for (int i=0; i