aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2012-07-08 01:00:48 +0200
committerSven Hesse2012-07-30 01:44:46 +0200
commit4bc80cd8810b4d328103e8bac75055a841b22d82 (patch)
tree1f87e16a911d9b01d06270d664a38698c63758b2 /engines
parent943c6af82af9e14062c1aa1940aea2f625121368 (diff)
downloadscummvm-rg350-4bc80cd8810b4d328103e8bac75055a841b22d82.tar.gz
scummvm-rg350-4bc80cd8810b4d328103e8bac75055a841b22d82.tar.bz2
scummvm-rg350-4bc80cd8810b4d328103e8bac75055a841b22d82.zip
GOB: Allow spaces in the Once Upon A Time character generator
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/pregob/onceupon/onceupon.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/pregob/onceupon/onceupon.cpp b/engines/gob/pregob/onceupon/onceupon.cpp
index f9e093374b..abee238d34 100644
--- a/engines/gob/pregob/onceupon/onceupon.cpp
+++ b/engines/gob/pregob/onceupon/onceupon.cpp
@@ -1599,6 +1599,9 @@ bool OnceUpon::enterString(Common::String &name, int16 key, uint maxLength, cons
return true;
}
+ if (key == kKeySpace)
+ key = ' ';
+
if ((key >= ' ') && (key <= 0xFF)) {
if (name.size() >= maxLength)
return false;
@@ -1727,6 +1730,7 @@ OnceUpon::CharGenAction OnceUpon::characterGenerator() {
}
if ((key == kKeyReturn) && !_name.empty()) {
+ _name.trim();
_name.setChar(Util::toCP850Upper(_name[0]), 0);
state = kCharGenStateSure;