diff --git a/docs/rh-log.txt b/docs/rh-log.txt index b400d677e..88fa5d630 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +November 5, 2009 (Changes by Graf Zahl) +- fixed: The 'new format only' flag for MAPINFO options was never checked. + (ZDoom itself doesn't use it yet so it's only relevant for child ports.) + November 3, 2009 - Fixed: S_RestartSound() cleared the evicted flag even if the sound was not restarted because it was too close to too many other identical diff --git a/src/g_mapinfo.cpp b/src/g_mapinfo.cpp index bb3449e0a..eeb222361 100644 --- a/src/g_mapinfo.cpp +++ b/src/g_mapinfo.cpp @@ -1461,6 +1461,10 @@ void FMapInfoParser::ParseMapDefinition(level_info_t &info) { if (sc.Compare(((FMapOptInfo *)(*probe))->name)) { + if (!((FMapOptInfo *)(*probe))->old && format_type != FMT_New) + { + sc.ScriptError("MAPINFO option '%s' requires the new MAPINFO format", sc.String); + } ((FMapOptInfo *)(*probe))->handler(*this, &info); success = true; break; diff --git a/src/v_video.h b/src/v_video.h index 394ba319e..6e6e6c60d 100644 --- a/src/v_video.h +++ b/src/v_video.h @@ -403,6 +403,8 @@ public: virtual bool WipeDo(int ticks); virtual void WipeCleanup(); + DWORD GetLastFPS() const { return LastCount; } + #ifdef _WIN32 virtual void PaletteChanged () = 0; virtual int QueryNewPalette () = 0;