Call setWalkspeed() after reading config settings, and after loading savegames,

so that _timers[] is properly synced with _configWalkspeed. Should fix bug
#1498660.

svn-id: r22814
This commit is contained in:
Torbjörn Andersson 2006-06-01 09:49:56 +00:00
parent 9dabbb0c14
commit 4c9b3ce5e3
2 changed files with 6 additions and 0 deletions

View file

@ -234,6 +234,10 @@ void KyraEngine::loadGame(const char *fileName) {
else
debugC(1, kDebugLevelMain, "Loaded savegame '%s.'", saveName);
// We didn't explicitly set the walk speed, but it's saved as part of
// the _timers array, so we need to re-sync it with _configWalkspeed.
setWalkspeed(_configWalkspeed);
delete in;
}