1
0
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:
Ivan Savenko
2024-04-12 11:14:35 +03:00
committed by GitHub
parent 2c8bd91831
commit 622e4b059b

View File

@@ -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