mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Update lib/CTownHandler.cpp
This commit is contained in:
@@ -1068,8 +1068,7 @@ CFaction * CTownHandler::loadFromJson(const std::string & scope, const JsonNode
|
|||||||
|
|
||||||
auto preferUndergound = source["preferUndergroundPlacement"];
|
auto preferUndergound = source["preferUndergroundPlacement"];
|
||||||
faction->preferUndergroundPlacement = preferUndergound.isNull() ? false : preferUndergound.Bool();
|
faction->preferUndergroundPlacement = preferUndergound.isNull() ? false : preferUndergound.Bool();
|
||||||
auto isSpecial = source["special"];
|
faction->special = source["special"].Bool();
|
||||||
faction->special = isSpecial.isNull() ? false : isSpecial.Bool();
|
|
||||||
|
|
||||||
// NOTE: semi-workaround - normally, towns are supposed to have native terrains.
|
// NOTE: semi-workaround - normally, towns are supposed to have native terrains.
|
||||||
// Towns without one are exceptions. So, vcmi requires nativeTerrain to be defined
|
// Towns without one are exceptions. So, vcmi requires nativeTerrain to be defined
|
||||||
|
|||||||
Reference in New Issue
Block a user