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:
parent
64fd896978
commit
cd3a1a02c2
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user