Bugfix for keyboard configuration that's not read in properly.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-01-21 04:07:05 +00:00
parent 22c1d82e67
commit 5222a88ee2

View File

@ -495,6 +495,8 @@ void UserConfig::loadConfig(const std::string& filename)
if (configFileVersion <= 4)
{
m_warning=_("Old config file found, check your key bindings!");
} // configFileVersion <= 4
// Retrieves a player's INPUT configuration
readPlayerInput(reader, "left", KA_LEFT, i);
readPlayerInput(reader, "right", KA_RIGHT, i);
@ -505,7 +507,6 @@ void UserConfig::loadConfig(const std::string& filename)
readPlayerInput(reader, "rescue", KA_RESCUE, i);
readPlayerInput(reader, "fire", KA_FIRE, i);
readPlayerInput(reader, "lookBack", KA_LOOK_BACK, i);
} // configFileVersion <= 4
} // for i < PLAYERS
}
catch(std::exception& e)