| 3267 | } |
| 3268 | |
| 3269 | void GameMap::fireRelativeSound(const std::vector<Seat*>& seats, const std::string& soundFamily) |
| 3270 | { |
| 3271 | for(Seat* seat : seats) |
| 3272 | { |
| 3273 | if(seat->getPlayer() == nullptr) |
| 3274 | continue; |
| 3275 | if(!seat->getPlayer()->getIsHuman()) |
| 3276 | continue; |
| 3277 | |
| 3278 | ServerNotification *serverNotification = new ServerNotification( |
| 3279 | ServerNotificationType::playRelativeSound, seat->getPlayer()); |
| 3280 | serverNotification->mPacket << soundFamily; |
| 3281 | ODServer::getSingleton().queueServerNotification(serverNotification); |
| 3282 | } |
| 3283 | } |
no test coverage detected