Allow terrain aligned props. Patch by sanderd17. Fixes #2033.

This was SVN commit r13549.
This commit is contained in:
leper
2013-07-11 22:53:31 +00:00
parent 6cffdacb40
commit d5897854be
8 changed files with 72 additions and 27 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2012 Wildfire Games.
/* Copyright (C) 2013 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -80,6 +80,8 @@ bool CObjectBase::Load(const VfsPath& pathname)
AT(angle);
AT(offsetx);
AT(offsetz);
AT(minheight);
AT(maxheight);
#undef AT
#undef EL
@@ -246,6 +248,10 @@ bool CObjectBase::Load(const VfsPath& pathname)
prop.m_PropPointName = pe.Value;
else if (pe.Name == at_actor)
prop.m_ModelName = pe.Value.FromUTF8();
else if (pe.Name == at_minheight)
prop.m_minHeight = pe.Value.ToFloat();
else if (pe.Name == at_maxheight)
prop.m_maxHeight = pe.Value.ToFloat();
}
currentVariant->m_Props.push_back(prop);
}