Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/MapWriter.cpp
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | if (!sim.GetStartupScript().empty()) | ||||
} | } | ||||
{ | { | ||||
XMLWriter_Element declinationTag(xmlMapFile, "Declination"); | XMLWriter_Element declinationTag(xmlMapFile, "Declination"); | ||||
declinationTag.Attribute("angle", declination); | declinationTag.Attribute("angle", declination); | ||||
} | } | ||||
} | } | ||||
{ | { | ||||
std::string settings = sim.GetMapSettingsString(); | std::string settings = sim.GetSettingsFromInitAttributes(); | ||||
if (!settings.empty()) | if (!settings.empty()) | ||||
{ | { | ||||
XMLWriter_Element scriptSettingsTag(xmlMapFile, "ScriptSettings"); | XMLWriter_Element scriptSettingsTag(xmlMapFile, "ScriptSettings"); | ||||
scriptSettingsTag.Text(("\n" + settings + "\n").c_str(), true); | scriptSettingsTag.Text(("\n" + settings + "\n").c_str(), true); | ||||
} | } | ||||
} | } | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator