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:
parent
9dabbb0c14
commit
4c9b3ce5e3
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue