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
This commit is contained in:
puzl 2006-05-05 17:40:11 +00:00
parent 36c88e8b48
commit 53025143dc

View file

@ -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();