From 2bc48fc1e7da940b715b7dbdbf5717344fab783b Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Mon, 23 Mar 2009 21:35:26 +0000 Subject: [PATCH] Stop relying on XML default values from DTDs This was SVN commit r6767. --- source/graphics/TerrainProperties.cpp | 5 +++-- source/gui/CGUI.cpp | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/graphics/TerrainProperties.cpp b/source/graphics/TerrainProperties.cpp index e3619aad43..9aef72df84 100644 --- a/source/graphics/TerrainProperties.cpp +++ b/source/graphics/TerrainProperties.cpp @@ -182,8 +182,10 @@ void CTerrainProperties::ReadPassability(bool passable, XMBElement node, CXeromy #undef ATTR STerrainPassability pass(passable); + // Set default speed + pass.m_SpeedFactor = 100; + bool hasType = false; - bool hasSpeed; XMBAttributeList attribs = node.GetAttributes(); for (int i=0;iGetAttributeID("type"))); + if (type.empty()) + type = "empty"; // Construct object from specified type // henceforth, we need to do a rollback before aborting.