diff options
author | Torbjörn Andersson | 2008-08-03 09:41:10 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-08-03 09:41:10 +0000 |
commit | dcecff4829b30471cd230c03fe4c75c5d1f4b31b (patch) | |
tree | 9fba22b0205891384b6838c0371ba4a6db3cc769 | |
parent | 01c50cfe1d583e2044b82e639a53d470e550888d (diff) | |
download | scummvm-rg350-dcecff4829b30471cd230c03fe4c75c5d1f4b31b.tar.gz scummvm-rg350-dcecff4829b30471cd230c03fe4c75c5d1f4b31b.tar.bz2 scummvm-rg350-dcecff4829b30471cd230c03fe4c75c5d1f4b31b.zip |
Fixed bug that prevented upper-case letters from being used in savegame names.
Apparently, strchr(..., 0) will find the string terminator - at least for me -
and when that's added to the name, it will terminate the string.
svn-id: r33565
-rw-r--r-- | engines/sky/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp index 53169402e1..9d6b58704d 100644 --- a/engines/sky/control.cpp +++ b/engines/sky/control.cpp @@ -986,7 +986,7 @@ void Control::handleKeyPress(Common::KeyState kbd, Common::String &textBuf) { if (kbd.keycode == Common::KEYCODE_BACKSPACE) { // backspace if (textBuf.size() > 0) textBuf.deleteLastChar(); - } else { + } else if (kbd.ascii) { // Cannot enter text wider than the save/load panel if (_enteredTextWidth >= PAN_LINE_WIDTH - 10) return; |