sonar ping only for teammates

This commit is contained in:
Titus Tscharntke 2012-07-17 21:29:39 +00:00
parent 07c6fb2720
commit 25a4b83b83
1 changed files with 3 additions and 1 deletions

View File

@ -1686,7 +1686,9 @@ void Game::addOrReplaceInHighlightedCells(MarkedCell mc){
highlightedCells.push_back(mc);
CoreData &coreData= CoreData::getInstance();
SoundRenderer &soundRenderer= SoundRenderer::getInstance();
soundRenderer.playFx(coreData.getMarkerSound());
if(mc.getFaction() != NULL && mc.getFaction()->getTeam() == getWorld()->getThisFaction()->getTeam()) {
soundRenderer.playFx(coreData.getMarkerSound());
}
}
void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) {