aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2007-10-13 21:20:24 +0000
committerPaweł Kołodziejski2007-10-13 21:20:24 +0000
commit16175cf368622102d6ff18e2581618ed8c5c27a5 (patch)
treecdcee754e5f0c853b59ef61b05b47adc3587ed55
parent706888358dc3086e8c96f6f8b88b06e969427151 (diff)
downloadscummvm-rg350-16175cf368622102d6ff18e2581618ed8c5c27a5.tar.gz
scummvm-rg350-16175cf368622102d6ff18e2581618ed8c5c27a5.tar.bz2
scummvm-rg350-16175cf368622102d6ff18e2581618ed8c5c27a5.zip
fixed walking bug in execute wrong animation function and fix previous warning cast types
svn-id: r29212
-rw-r--r--engines/drascula/drascula.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index fb0559cdd1..c39bae9012 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -5310,8 +5310,8 @@ void DrasculaEngine::aumenta_num_frame() {
}
if (num_ejec != 2) {
- diferencia_y = alto_hare - (int)nuevo_alto;
- diferencia_x = ancho_hare - (int)nuevo_ancho;
+ diferencia_y = (int)(alto_hare - nuevo_alto);
+ diferencia_x = (int)(ancho_hare - nuevo_ancho);
hare_y = hare_y + diferencia_y;
hare_x = hare_x + diferencia_x;
alto_hare = (int)nuevo_alto;
@@ -5484,7 +5484,7 @@ void DrasculaEngine::pantalla_62(int fl) {
if (objeto_que_lleva == HABLAR && fl == 53)
conversa("op_13.cal");
else if (objeto_que_lleva == HABLAR && fl == 52 && flags[0] == 0)
- animacion_3_2();
+ animacion_3_1();
else if (objeto_que_lleva == HABLAR && fl == 52 && flags[0] == 1)
hablar(TEXT109, "109.als");
else if (objeto_que_lleva == HABLAR && fl == 54)