mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Restored ambient sounds functionality
This commit is contained in:
@ -136,21 +136,6 @@ bool CMapHandler::isInMap( const int3 & tile)
|
||||
return map->isInTheMap(tile);
|
||||
}
|
||||
|
||||
std::vector<std::string> CMapHandler::getAmbientSounds(const int3 & tile)
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
|
||||
//for(auto & ttObj : ttiles[tile.z][tile.x][tile.y].objects)
|
||||
//{
|
||||
// if(ttObj.ambientSound)
|
||||
// result.push_back(ttObj.ambientSound.get());
|
||||
//}
|
||||
if(map->isCoastalTile(tile))
|
||||
result.emplace_back("LOOPOCEA");
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void CMapHandler::onObjectFadeIn(const CGObjectInstance * obj)
|
||||
{
|
||||
for (auto * observer : observers)
|
||||
|
Reference in New Issue
Block a user