[Scummvm-cvs-logs] CVS: scummvm scummvm.cpp,1.165,1.166
Max Horn
fingolfin at users.sourceforge.net
Tue Jul 2 11:15:31 CEST 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv26198
Modified Files:
scummvm.cpp
Log Message:
gee, why hardcode the ascii codes if we can use char constants? Also, volume up was mapped to '=' not '+' despite the comment indicating otherwise
Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scummvm.cpp,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- scummvm.cpp 16 Jun 2002 04:09:22 -0000 1.165
+++ scummvm.cpp 2 Jul 2002 18:08:35 -0000 1.166
@@ -931,23 +931,23 @@
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;
More information about the Scummvm-git-logs
mailing list