From 53025143dcad95e63ca30607ea9702e734c95e45 Mon Sep 17 00:00:00 2001 From: puzl Date: Fri, 5 May 2006 17:40:11 +0000 Subject: [PATCH] Mantis: 1112 o Reverted the state variable and changed the protection around show map. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@448 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.2.0/source/mod/AvHHud.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/releases/3.2.0/source/mod/AvHHud.cpp b/releases/3.2.0/source/mod/AvHHud.cpp index 866f0e9b..506a255b 100644 --- a/releases/3.2.0/source/mod/AvHHud.cpp +++ b/releases/3.2.0/source/mod/AvHHud.cpp @@ -2459,7 +2459,7 @@ void AvHHud::ResetGame(bool inMapChanged) this->mNumLocalSelectEvents = 0; // Removed to allow map to be shown before gamestart. // The map-mode will be re-set by the Gamestate messages anyway. - //this->mMapMode = MAP_MODE_UNDEFINED; + this->mMapMode = MAP_MODE_UNDEFINED; this->mInTopDownMode = false; this->mLeftMouseStarted = false; this->mLeftMouseEnded = false; @@ -6729,7 +6729,11 @@ void AvHHud::UpdateEnableState(PieMenu* inMenu) void AvHHud::ShowMap() { - if (!sShowMap && gHUD.GetIsNSMode()) + bool isNsMode=false; + if ( strnicmp(gHUD.GetMapName().c_str(), "ns_", 3) == 0 ) + isNsMode=true; + + if (!sShowMap && isNsMode ) { sShowMap = true; gHUD.HideCrosshair();