mirror of
https://github.com/ENSL/NS.git
synced 2024-11-13 00:24:38 +00:00
minimap fix for 1066
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@203 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
7e307af9d5
commit
478306c2bc
3 changed files with 413 additions and 407 deletions
|
@ -2563,6 +2563,9 @@ void AvHHud::ResetGame(bool inMapChanged)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// puzl: 1066 reset overview map on game restart
|
||||||
|
gHUD.GetOverviewMap().Clear();
|
||||||
|
|
||||||
AvHParticleSystemManager::Instance()->Reset();
|
AvHParticleSystemManager::Instance()->Reset();
|
||||||
|
|
||||||
this->mTechSlotManager.Clear();
|
this->mTechSlotManager.Clear();
|
||||||
|
|
|
@ -78,6 +78,8 @@ void AvHOverviewMap::Init()
|
||||||
|
|
||||||
this->mMiniMapSprite = 0;
|
this->mMiniMapSprite = 0;
|
||||||
this->mReticleSprite = 0;
|
this->mReticleSprite = 0;
|
||||||
|
// puzl: 1066 reset overview
|
||||||
|
this->mLastMinimapName = "";
|
||||||
|
|
||||||
mLastUpdateTime = 0;
|
mLastUpdateTime = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,8 @@ protected:
|
||||||
|
|
||||||
AvHUser3 mUser3;
|
AvHUser3 mUser3;
|
||||||
AvHTeamNumber mTeam;
|
AvHTeamNumber mTeam;
|
||||||
|
// puzl: 1066 the name of the last minimap we loaded
|
||||||
|
string mLastMinimapName;
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void WorldToMiniMapCoords(const DrawInfo& inDrawInfo, float& x, float& y);
|
void WorldToMiniMapCoords(const DrawInfo& inDrawInfo, float& x, float& y);
|
||||||
|
|
Loading…
Reference in a new issue