diff --git a/src/config/stk_config.cpp b/src/config/stk_config.cpp index 6ceed8378..99c5be912 100644 --- a/src/config/stk_config.cpp +++ b/src/config/stk_config.cpp @@ -127,7 +127,7 @@ void STKConfig::load(const std::string &filename) } CHECK_NEG(m_max_karts, "getNode("startup")) { - startup_node->get("penalty", &m_penalty_time ); + float f; + startup_node->get("penalty", &f); + m_penalty_ticks = time2Ticks(f); } if (const XMLNode *news_node= root->getNode("news")) @@ -347,7 +350,9 @@ void STKConfig::getAllData(const XMLNode * root) if(const XMLNode *switch_node= root->getNode("switch")) { switch_node->get("items", &m_switch_items ); - switch_node->get("time", &m_item_switch_time); + float f; + if( switch_node->get("time", &f) ) + m_item_switch_ticks = stk_config->time2Ticks(f); } if(const XMLNode *bubblegum_node= root->getNode("bubblegum")) diff --git a/src/config/stk_config.hpp b/src/config/stk_config.hpp index 8635995c0..473bd42e9 100644 --- a/src/config/stk_config.hpp +++ b/src/config/stk_config.hpp @@ -70,13 +70,13 @@ public: float m_bomb_time; /**