diff options
author | Travis Howell | 2003-03-07 12:52:28 +0000 |
---|---|---|
committer | Travis Howell | 2003-03-07 12:52:28 +0000 |
commit | 52b161257187d96195344ad850f001c5d02e10b0 (patch) | |
tree | 86e82620a987342144150d50573d6f08718b14d1 /simon | |
parent | 6f65f6f166854fb9c6bd2983072b6824fb74d9a5 (diff) | |
download | scummvm-rg350-52b161257187d96195344ad850f001c5d02e10b0.tar.gz scummvm-rg350-52b161257187d96195344ad850f001c5d02e10b0.tar.bz2 scummvm-rg350-52b161257187d96195344ad850f001c5d02e10b0.zip |
Remove vc_59_helper
Make t key work in simon2talkie/win only
svn-id: r6739
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 6 | ||||
-rw-r--r-- | simon/simon.h | 1 | ||||
-rw-r--r-- | simon/vga.cpp | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 8bdbc175bc..ed9dfb643e 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -3098,7 +3098,7 @@ void SimonState::processSpecialKeys() { break; case 't': - if (_game & GF_SIMON2) + if (_game & GF_SIMON2 && _game & GF_TALKIE) _subtitles ^= 1; break; @@ -3482,10 +3482,6 @@ void SimonState::video_toggle_colors(HitArea * ha, byte a, byte b, byte c, byte _lock_word &= ~0x8000; } -bool SimonState::vc_59_helper() { - return _sound->_voice_handle == 0; -} - void SimonState::video_copy_if_flag_0x8_c(FillOrCopyStruct *fcs) { if (fcs->flags & 8) copy_img_from_3_to_2(fcs); diff --git a/simon/simon.h b/simon/simon.h index d77feca331..f61ad9d561 100644 --- a/simon/simon.h +++ b/simon/simon.h @@ -689,7 +689,6 @@ public: VgaSprite *find_cur_sprite(); void vc_set_bit_to(uint bit, bool value); - bool vc_59_helper(); void expire_vga_timers(); bool has_vgastruct_with_id(uint16 id, uint16 file); diff --git a/simon/vga.cpp b/simon/vga.cpp index 321e4d4dff..42912cd5d3 100644 --- a/simon/vga.cpp +++ b/simon/vga.cpp @@ -1582,7 +1582,7 @@ void SimonState::vc_59() { vc_kill_thread(file, start); } while (++start != end); } else { - if (vc_59_helper()) + if (_sound->_voice_handle == 0) vc_skip_next_instruction(); } } @@ -1760,7 +1760,7 @@ void SimonState::vc_63_palette_thing_2() { void SimonState::vc_64_skip_if_text() { // Simon2 - if (vc_59_helper()) + if (_sound->_voice_handle == 0) vc_skip_next_instruction(); } |