mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Improve template code style for the Decay component.
This was SVN commit r16171.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user