aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-29 16:53:28 +0000
committerFilippos Karapetis2008-05-29 16:53:28 +0000
commit13c8e6d94b6d074985ef781d58300b56970b8c8f (patch)
treecda9832cccdf60b68051b0783db1e5a9495ff0c8 /engines
parenteb964d2844ce81bd01ab314d6f12d889405d777d (diff)
downloadscummvm-rg350-13c8e6d94b6d074985ef781d58300b56970b8c8f.tar.gz
scummvm-rg350-13c8e6d94b6d074985ef781d58300b56970b8c8f.tar.bz2
scummvm-rg350-13c8e6d94b6d074985ef781d58300b56970b8c8f.zip
Numbers are mapped in a different order in the game's fonts
svn-id: r32365
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/drascula.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index e42227dc49..f0adc6680d 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -1697,8 +1697,12 @@ void DrasculaEngine::print_abc(const char *said, int x_pantalla, int y_pantalla)
x_de_letra = X_ASTERISCO;
else if (c == '+')
x_de_letra = X_PLUS;
- else if (c >= '1' && c <= '0')
+ else if (c >= '1' && c <= '9')
x_de_letra = X_N1 + (c - '1') * 9;
+ // "0" is mapped after "9" in the game's font
+ // (it's mapped before "1" normally)
+ else if (c == '0')
+ x_de_letra = X_N0;
else y_de_letra=Y_ACENTOS;
if (c == '\240') x_de_letra=X_A;
@@ -4033,8 +4037,12 @@ void DrasculaEngine::print_abc_opc(const char *said, int x_pantalla, int y_panta
x_de_letra = X_ASTERISCO_OPC;
else if (c == '+')
x_de_letra = X_PLUS_OPC;
- else if (c >= '1' && c <= '0')
+ else if (c >= '1' && c <= '9')
x_de_letra = X_N1_OPC + (c - '1') * 7;
+ // "0" is mapped after "9" in the game's font
+ // (it's mapped before "1" normally)
+ else if (c == '0')
+ x_de_letra = X_N0_OPC;
}
pos_texto[0] = x_de_letra;