plays notification on captured/lost point

This commit is contained in:
stiffly
2016-02-02 14:57:03 +01:00
parent 83281fdaf1
commit 88ad127d8d
2 changed files with 52 additions and 1 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ bool SoundSystem::OnInputCommand(const Events::InputCommand & e)
bool SoundSystem::OnCaptured(const Events::Captured & e)
{
int homeTeam = (int)m_World->GetComponent(e.CapturePointID, "CapturePoint")["HomePointForTeam"];
int homeTeam = (int)m_World->GetComponent(e.CapturePointID, "Team")["Team"];
int team = (int)m_World->GetComponent(m_LocalPlayer, "Team")["Team"];
Events::PlaySoundOnEntity ev;
if (team == homeTeam) {