aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-07-02 18:08:35 +0000
committerMax Horn2002-07-02 18:08:35 +0000
commitb1ac054f87586e9b3e3f7a14ca76e02dbca5440c (patch)
tree6a209026378bb4c850cb6bf73f70a9b82e07f35f
parent9a4c17579e923120b6a0afa2feb06b06751c7d95 (diff)
downloadscummvm-rg350-b1ac054f87586e9b3e3f7a14ca76e02dbca5440c.tar.gz
scummvm-rg350-b1ac054f87586e9b3e3f7a14ca76e02dbca5440c.tar.bz2
scummvm-rg350-b1ac054f87586e9b3e3f7a14ca76e02dbca5440c.zip
gee, why hardcode the ascii codes if we can use char constants? Also, volume up was mapped to '=' not '+' despite the comment indicating otherwise
svn-id: r4445
-rw-r--r--scummvm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index a4f4695e2a..4eb87a8c51 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -931,23 +931,23 @@ void Scumm::processKbd()
if (_sfxMode == 2)
stopTalk();
return;
- } else if (_lastKeyHit == 91) { // [, eg volume down
+ } else if (_lastKeyHit == '[') { // [, eg volume down
_sound_volume_master-=5;
if (_sound_volume_master < 0)
_sound_volume_master = 0;
_imuse->set_master_volume(_sound_volume_master);
- } else if (_lastKeyHit == 93) { // ], eg volume down
+ } else if (_lastKeyHit == ']') { // ], eg volume down
_sound_volume_master+=5;
if (_sound_volume_master > 128)
_sound_volume_master = 128;
_imuse->set_master_volume(_sound_volume_master);
- } else if (_lastKeyHit == 45) { // -, eg text speed down
+ } else if (_lastKeyHit == '-') { // -, eg text speed down
_defaultTalkDelay+=5;
if (_defaultTalkDelay > 90)
_defaultTalkDelay = 90;
_vars[VAR_CHARINC] = _defaultTalkDelay / 20;
- } else if (_lastKeyHit == 61) { // +, eg text speed up
+ } else if (_lastKeyHit == '+') { // +, eg text speed up
_defaultTalkDelay-=5;
if (_defaultTalkDelay < 5)
_defaultTalkDelay = 5;