diff options
author | Johannes Schickel | 2008-05-05 17:18:11 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-05 17:18:11 +0000 |
commit | f42d222069d7ae130c85201e895e7f23d27c88d0 (patch) | |
tree | 6eab38aab26fb2fff6e92cd3bafdb579e7d6c0e0 /engines/kyra/gui_hof.cpp | |
parent | 81cfd2a716ff42d5425a456faff9068c92130969 (diff) | |
download | scummvm-rg350-f42d222069d7ae130c85201e895e7f23d27c88d0.tar.gz scummvm-rg350-f42d222069d7ae130c85201e895e7f23d27c88d0.tar.bz2 scummvm-rg350-f42d222069d7ae130c85201e895e7f23d27c88d0.zip |
Got rid of some code duplication.
svn-id: r31880
Diffstat (limited to 'engines/kyra/gui_hof.cpp')
-rw-r--r-- | engines/kyra/gui_hof.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/engines/kyra/gui_hof.cpp b/engines/kyra/gui_hof.cpp index 1ca90c6549..08cfd2a1e9 100644 --- a/engines/kyra/gui_hof.cpp +++ b/engines/kyra/gui_hof.cpp @@ -1001,18 +1001,6 @@ int GUI_HoF::gameOptionsTalkie(Button *caller) { return 0; } -int GUI_HoF::toggleWalkspeed(Button *caller) { - updateMenuButton(caller); - if (_vm->_configWalkspeed == 5) - _vm->_configWalkspeed = 3; - else - _vm->_configWalkspeed = 5; - _vm->_timer->setDelay(0, _vm->_configWalkspeed); - setupOptionsButtons(); - renewHighlight(_gameOptions); - return 0; -} - int GUI_HoF::changeLanguage(Button *caller) { updateMenuButton(caller); ++_vm->_lang; @@ -1022,26 +1010,6 @@ int GUI_HoF::changeLanguage(Button *caller) { return 0; } -int GUI_HoF::toggleText(Button *caller) { - updateMenuButton(caller); - - if (_vm->textEnabled()) { - if (_vm->speechEnabled()) - _vm->_configVoice = 1; - else - _vm->_configVoice = 3; - } else { - if (_vm->speechEnabled()) - _vm->_configVoice = 2; - else - _vm->_configVoice = 0; - } - - setupOptionsButtons(); - renewHighlight(_gameOptions); - return 0; -} - void GUI_HoF::setupOptionsButtons() { if (_vm->_configWalkspeed == 3) _gameOptions.item[0].itemId = 28; |