aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2008-08-02 21:22:05 +0000
committerEugene Sandulenko2008-08-02 21:22:05 +0000
commit7e808d771434f893f67e8c64d95f826614c46594 (patch)
tree528e5976c1ec509a9796117184305440b226016d
parent4d10465cdf91c7381449e0120adc183dd2e4ca05 (diff)
downloadscummvm-rg350-7e808d771434f893f67e8c64d95f826614c46594.tar.gz
scummvm-rg350-7e808d771434f893f67e8c64d95f826614c46594.tar.bz2
scummvm-rg350-7e808d771434f893f67e8c64d95f826614c46594.zip
Fix bug #2007170: "DRASCULA: No Spaces in SaveGames Names"
svn-id: r33541
-rw-r--r--engines/drascula/interface.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/drascula/interface.cpp b/engines/drascula/interface.cpp
index 6e86788007..088c3c3704 100644
--- a/engines/drascula/interface.cpp
+++ b/engines/drascula/interface.cpp
@@ -128,12 +128,8 @@ void DrasculaEngine::enterName() {
if (key != 0) {
if (key >= 0 && key <= 0xFF && isalpha(key))
select2[v] = tolower(key);
- else if ((key == Common::KEYCODE_LCTRL) || (key == Common::KEYCODE_RCTRL))
- select2[v] = '\164';
- else if (key >= Common::KEYCODE_0 && key <= Common::KEYCODE_9)
+ else if ((key >= Common::KEYCODE_0 && key <= Common::KEYCODE_9) || key == Common::KEYCODE_SPACE)
select2[v] = key;
- else if (key == Common::KEYCODE_SPACE)
- select2[v] = '\167';
else if (key == Common::KEYCODE_ESCAPE)
break;
else if (key == Common::KEYCODE_RETURN) {