Fix engine to respect lack of castshadow flag in actors.

Remove unused variable.

This was SVN commit r11499.
This commit is contained in:
Ykkrosh 2012-04-14 17:31:18 +00:00
parent 8a5539f349
commit 6410d36a55
2 changed files with 2 additions and 5 deletions

View File

@ -34,8 +34,7 @@
CObjectBase::CObjectBase(CObjectManager& objectManager)
: m_ObjectManager(objectManager)
{
m_Properties.m_CastShadows = true;
m_Properties.m_AutoFlatten = false;
m_Properties.m_CastShadows = false;
m_Properties.m_FloatOnWater = false;
}
@ -245,7 +244,7 @@ bool CObjectBase::Load(const VfsPath& pathname)
}
else if (child_name == el_castshadow)
{
m_Properties.m_CastShadows = true; // TODO: this is the default, so it's a bit useless
m_Properties.m_CastShadows = true;
}
else if (child_name == el_float)
{

View File

@ -143,8 +143,6 @@ public:
CStrW m_ShortName;
struct {
// automatically flatten terrain when applying object
bool m_AutoFlatten;
// cast shadows from this object
bool m_CastShadows;
// float on top of water