mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-04 23:17:41 +02:00
More style tweaks
This commit is contained in:
parent
64fd896978
commit
cd3a1a02c2
@ -456,8 +456,8 @@ CBattleInterface::~CBattleInterface()
|
|||||||
|
|
||||||
if (adventureInt && adventureInt->selection)
|
if (adventureInt && adventureInt->selection)
|
||||||
{
|
{
|
||||||
const auto * terrain = LOCPLINT->cb->getTile(adventureInt->selection->visitablePos())->terType;
|
const auto & terrain = *(LOCPLINT->cb->getTile(adventureInt->selection->visitablePos())->terType);
|
||||||
CCS->musich->playMusicFromSet("terrain", terrain->name, true);
|
CCS->musich->playMusicFromSet("terrain", terrain.name, true);
|
||||||
}
|
}
|
||||||
animsAreDisplayed.setn(false);
|
animsAreDisplayed.setn(false);
|
||||||
}
|
}
|
||||||
|
@ -126,14 +126,14 @@ CCastleEvent::CCastleEvent() : town(nullptr)
|
|||||||
TerrainTile::TerrainTile():
|
TerrainTile::TerrainTile():
|
||||||
terType(nullptr),
|
terType(nullptr),
|
||||||
terView(0),
|
terView(0),
|
||||||
|
riverType(VLC->terrainTypeHandler->rivers()[0]),
|
||||||
riverDir(0),
|
riverDir(0),
|
||||||
|
roadType(VLC->terrainTypeHandler->roads()[0]),
|
||||||
roadDir(0),
|
roadDir(0),
|
||||||
extTileFlags(0),
|
extTileFlags(0),
|
||||||
visitable(false),
|
visitable(false),
|
||||||
blocked(false)
|
blocked(false)
|
||||||
{
|
{
|
||||||
riverType = VLC->terrainTypeHandler->rivers()[0];
|
|
||||||
roadType = VLC->terrainTypeHandler->roads()[0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TerrainTile::entrableTerrain(const TerrainTile * from) const
|
bool TerrainTile::entrableTerrain(const TerrainTile * from) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user