1
0
forked from 0ad/0ad

Disable the default slide-down-hills behaviour

This was SVN commit r7290.
This commit is contained in:
Ykkrosh 2010-01-27 19:34:58 +00:00
parent c399dc277e
commit 3c2e80c698
3 changed files with 2 additions and 4 deletions

View File

@ -6,5 +6,4 @@
<Floating>false</Floating>
</Position>
<Ownership/>
<MotionBallScripted/>
</Entity>

View File

@ -252,7 +252,6 @@ void CCmpTemplateManager::ConstructTemplateActor(const std::wstring& actorName,
"<Altitude>0</Altitude>"
"<Floating>false</Floating>"
"</Position>"
"<MotionBallScripted/>"
"<VisualActor>"
"<Actor>" + name + "</Actor>"
"</VisualActor>"

View File

@ -71,9 +71,9 @@ public:
TS_ASSERT(inherit1 != NULL);
TS_ASSERT_WSTR_EQUALS(inherit1->ToXML(), L"<x a=\"a1\" b=\"b1\" c=\"c1\"><d>d1</d><e>e1</e><f>f1</f></x>");
const CParamNode* actor = tempMan->LoadTemplate(ent2, L"actor|example", -1);
const CParamNode* actor = tempMan->LoadTemplate(ent2, L"actor|example1", -1);
TS_ASSERT(actor != NULL);
TS_ASSERT_WSTR_EQUALS(actor->ToXML(), L"<MotionBallScripted></MotionBallScripted><Position><Altitude>0</Altitude><Anchor>upright</Anchor><Floating>false</Floating></Position><VisualActor><Actor>example</Actor></VisualActor>");
TS_ASSERT_WSTR_EQUALS(actor->ToXML(), L"<Position><Altitude>0</Altitude><Anchor>upright</Anchor><Floating>false</Floating></Position><VisualActor><Actor>example1</Actor></VisualActor>");
const CParamNode* preview = tempMan->LoadTemplate(ent2, L"preview|unit", -1);
TS_ASSERT(preview != NULL);