Ticket #3957: mirageObstruction.patch
File mirageObstruction.patch, 1.2 KB (added by , 8 years ago) |
---|
-
source/ps/TemplateLoader.cpp
431 431 std::set<std::string> permittedComponentTypes; 432 432 permittedComponentTypes.insert("Footprint"); 433 433 permittedComponentTypes.insert("Minimap"); 434 permittedComponentTypes.insert("Obstruction"); 434 435 permittedComponentTypes.insert("Ownership"); 435 436 permittedComponentTypes.insert("OverlayRenderer"); 436 437 permittedComponentTypes.insert("Position"); … … 456 457 identity.CopyFilteredChildrenOfChild(in.GetChild("Entity"), "Identity", identitySubset); 457 458 CParamNode::LoadXMLString(out, ("<Entity>"+utf8_from_wstring(identity.ToXML())+"</Entity>").c_str()); 458 459 460 // Mirages obstruction shouldn't block anything 461 if (out.GetChild("Entity").GetChild("Obstruction").IsOk()) 462 CParamNode::LoadXMLString(out, "<Entity><Obstruction><BlockMovement>false</BlockMovement><BlockPathfinding>false</BlockPathfinding><BlockFoundation>false</BlockFoundation><BlockConstruction>false</BlockConstruction></Obstruction></Entity>"); 463 459 464 // Set the entity as mirage entity 460 465 CParamNode::LoadXMLString(out, "<Entity><Mirage/></Entity>"); 461 466 }