Improve template code style for the Decay component.

This was SVN commit r16171.
This commit is contained in:
Itms
2015-01-21 21:45:05 +00:00
parent b65dcaba48
commit b5b9c0f2ae
12 changed files with 20 additions and 27 deletions
+2 -2
View File
@@ -393,9 +393,9 @@ void CTemplateLoader::CopyPreviewSubset(CParamNode& out, const CParamNode& in, b
if (corpse)
{
// Corpses should include decay components and un-inactivate them
// Corpses should include decay components and activate them
if (out.GetChild("Entity").GetChild("Decay").IsOk())
CParamNode::LoadXMLString(out, "<Entity><Decay><Inactive disable=''/></Decay></Entity>");
CParamNode::LoadXMLString(out, "<Entity><Decay><Active>true</Active></Decay></Entity>");
// Corpses shouldn't display silhouettes (especially since they're often half underground)
if (out.GetChild("Entity").GetChild("VisualActor").IsOk())