mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 11:41:46 +02:00
sonar ping only for teammates
This commit is contained in:
@@ -1686,8 +1686,10 @@ void Game::addOrReplaceInHighlightedCells(MarkedCell mc){
|
|||||||
highlightedCells.push_back(mc);
|
highlightedCells.push_back(mc);
|
||||||
CoreData &coreData= CoreData::getInstance();
|
CoreData &coreData= CoreData::getInstance();
|
||||||
SoundRenderer &soundRenderer= SoundRenderer::getInstance();
|
SoundRenderer &soundRenderer= SoundRenderer::getInstance();
|
||||||
|
if(mc.getFaction() != NULL && mc.getFaction()->getTeam() == getWorld()->getThisFaction()->getTeam()) {
|
||||||
soundRenderer.playFx(coreData.getMarkerSound());
|
soundRenderer.playFx(coreData.getMarkerSound());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) {
|
void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) {
|
||||||
if(role == nrServer && isNetworkGame == true &&
|
if(role == nrServer && isNetworkGame == true &&
|
||||||
|
Reference in New Issue
Block a user