1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

More style tweaks

This commit is contained in:
Tomasz Zieliński 2022-09-25 21:47:44 +02:00
parent 64fd896978
commit cd3a1a02c2
2 changed files with 4 additions and 4 deletions

View File

@ -456,8 +456,8 @@ CBattleInterface::~CBattleInterface()
if (adventureInt && adventureInt->selection)
{
const auto * terrain = LOCPLINT->cb->getTile(adventureInt->selection->visitablePos())->terType;
CCS->musich->playMusicFromSet("terrain", terrain->name, true);
const auto & terrain = *(LOCPLINT->cb->getTile(adventureInt->selection->visitablePos())->terType);
CCS->musich->playMusicFromSet("terrain", terrain.name, true);
}
animsAreDisplayed.setn(false);
}

View File

@ -126,14 +126,14 @@ CCastleEvent::CCastleEvent() : town(nullptr)
TerrainTile::TerrainTile():
terType(nullptr),
terView(0),
riverType(VLC->terrainTypeHandler->rivers()[0]),
riverDir(0),
roadType(VLC->terrainTypeHandler->roads()[0]),
roadDir(0),
extTileFlags(0),
visitable(false),
blocked(false)
{
riverType = VLC->terrainTypeHandler->rivers()[0];
roadType = VLC->terrainTypeHandler->roads()[0];
}
bool TerrainTile::entrableTerrain(const TerrainTile * from) const