mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
Fixes timers in Kyra1. (Initialized them twice oops...)
svn-id: r29245
This commit is contained in:
parent
00f349a52f
commit
80045e9661
@ -381,7 +381,6 @@ void KyraEngine_v1::startup() {
|
||||
loadButtonShapes();
|
||||
initMainButtonList();
|
||||
loadMainScreen();
|
||||
setupTimers();
|
||||
_screen->loadPalette("PALETTE.COL", _screen->_currentPalette);
|
||||
|
||||
// XXX
|
||||
|
@ -73,6 +73,12 @@ void TimerManager::reset() {
|
||||
void TimerManager::addTimer(uint8 id, TimerFunc *func, int countdown, bool enabled) {
|
||||
debugC(9, kDebugLevelTimer, "TimerManager::addTimer(%d, %p, %d, %d)", id, (const void*)func, countdown, enabled);
|
||||
|
||||
Iterator timer = Common::find_if(_timers.begin(), _timers.end(), TimerEqual(id));
|
||||
if (timer != _timers.end()) {
|
||||
warning("Adding allready existing timer %d", id);
|
||||
return;
|
||||
}
|
||||
|
||||
TimerEntry newTimer;
|
||||
|
||||
newTimer.id = id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user