Some assets and HUD stuff

This commit is contained in:
Tleety
2016-02-11 10:01:11 +01:00
parent 447f41dbff
commit 35e4935497
4 changed files with 215 additions and 39 deletions
+3 -2
View File
@@ -13,7 +13,7 @@ CapturePointHUDSystem::CapturePointHUDSystem(World* world, EventBroker* eventBro
void CapturePointHUDSystem::Update(double dt)
{
bool LoadCheck = false;
bool LoadCheck = true;
int redTeam;
int blueTeam;
int spectatorTeam;
@@ -32,10 +32,11 @@ void CapturePointHUDSystem::Update(double dt)
//Check if the HUD corresponds to the Capture Point Number
if (HUD_ID == (int)entityCP["CapturePoint"]["CapturePointNumber"]) {
ComponentWrapper& teamComponent = entityCP["Team"];
if (!LoadCheck) {
if (LoadCheck) {
redTeam = (int)teamComponent["Team"].Enum("Red");
blueTeam = (int)teamComponent["Team"].Enum("Blue");
spectatorTeam = (int)teamComponent["Team"].Enum("Spectator");
LoadCheck = false;
}
//Color hud with team color
auto capturePointTeam = (int)teamComponent["Team"];