diff options
author | Travis Howell | 2005-10-23 11:17:15 +0000 |
---|---|---|
committer | Travis Howell | 2005-10-23 11:17:15 +0000 |
commit | cd8533d722b288a3f73c997bc525eb2648cdd4fb (patch) | |
tree | b9bcbc7c48b8b3245f249e15977e7e471a7bebde /simon/simon.cpp | |
parent | 2e6b615c91d32077fa3d28fbc7233da8752bec92 (diff) | |
download | scummvm-rg350-cd8533d722b288a3f73c997bc525eb2648cdd4fb.tar.gz scummvm-rg350-cd8533d722b288a3f73c997bc525eb2648cdd4fb.tar.bz2 scummvm-rg350-cd8533d722b288a3f73c997bc525eb2648cdd4fb.zip |
Cleanup.
svn-id: r19259
Diffstat (limited to 'simon/simon.cpp')
-rw-r--r-- | simon/simon.cpp | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index eb07ea3e0d..8fc32a95db 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -2744,15 +2744,9 @@ void SimonEngine::o_force_unlock() { } void SimonEngine::o_force_lock() { - if (_game & GF_SIMON2) { - _lockWord |= 0x8000; - vc34_setMouseOff(); - _lockWord &= ~0x8000; - } else { - _lockWord |= 0x4000; - vc34_setMouseOff(); - _lockWord &= ~0x4000; - } + _lockWord |= 0x8000; + vc34_setMouseOff(); + _lockWord &= ~0x8000; } void SimonEngine::o_wait_for_vga(uint a) { @@ -2924,13 +2918,8 @@ void SimonEngine::timer_vga_sprites_2() { void SimonEngine::timer_proc1() { _timer4++; - if (_game & GF_SIMON2) { - if (_lockWord & 0x80E9 || _lockWord & 2) - return; - } else { - if (_lockWord & 0xC0E9 || _lockWord & 2) - return; - } + if (_lockWord & 0x80E9 || _lockWord & 2) + return; _timer1++; @@ -2944,7 +2933,7 @@ void SimonEngine::timer_proc1() { if (!_cepeFlag) expire_vga_timers(); - if (_lockCounter != 0 && !_syncFlag2) { + if (_lockCounter != 0 && _syncFlag2) { _lockWord &= ~2; return; } @@ -2987,15 +2976,9 @@ void SimonEngine::fcs_setTextColor(FillOrCopyStruct *fcs, uint value) { } void SimonEngine::o_vga_reset() { - if (_game & GF_SIMON2) { - _lockWord |= 0x8000; - vc27_resetSprite(); - _lockWord &= ~0x8000; - } else { - _lockWord |= 0x4000; - vc27_resetSprite(); - _lockWord &= ~0x4000; - } + _lockWord |= 0x8000; + vc27_resetSprite(); + _lockWord &= ~0x8000; } bool SimonEngine::itemIsSiblingOf(uint16 a) { |