aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-30 10:02:56 +0000
committerFilippos Karapetis2008-05-30 10:02:56 +0000
commit792286874a9f64e9aa282b219bcad574919ce7b8 (patch)
tree108ed280896ea1687a241c2a65105dfe35b3012c
parent64def1b5624dc7068e60fe190fbeaa79f55ac9b2 (diff)
downloadscummvm-rg350-792286874a9f64e9aa282b219bcad574919ce7b8.tar.gz
scummvm-rg350-792286874a9f64e9aa282b219bcad574919ce7b8.tar.bz2
scummvm-rg350-792286874a9f64e9aa282b219bcad574919ce7b8.zip
talk_igorpuerta -> talk_igor_door
talk_igor_peluca -> talk_igor_wig and replaced some unneeded if statements with atoi svn-id: r32388
-rw-r--r--engines/drascula/drascula.h4
-rw-r--r--engines/drascula/rooms.cpp6
-rw-r--r--engines/drascula/talk.cpp21
3 files changed, 8 insertions, 23 deletions
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h
index 52e493d925..b2ebae09e6 100644
--- a/engines/drascula/drascula.h
+++ b/engines/drascula/drascula.h
@@ -496,8 +496,8 @@ public:
void talk_igor_frente(const char *, const char *);
void talk_tabernero(int);
void talk_tabernero(const char *said, const char *filename);
- void talk_igorpuerta(const char *said, const char *filename);
- void talk_igor_peluca(const char *said, const char *filename);
+ void talk_igor_door(const char *said, const char *filename);
+ void talk_igor_wig(const char *said, const char *filename);
void talk_pen(const char *, const char *);
void talk_pen2(const char *, const char *);
void talk_taber2(int);
diff --git a/engines/drascula/rooms.cpp b/engines/drascula/rooms.cpp
index 374dd0968b..f7c6eacca4 100644
--- a/engines/drascula/rooms.cpp
+++ b/engines/drascula/rooms.cpp
@@ -832,16 +832,16 @@ void DrasculaEngine::room_26(int fl) {
flags[12] = 1;
closeDoor(2, 0);
sentido_hare = 2;
- talk_igorpuerta(_texti[_lang][27], "I27.als");
+ talk_igor_door(_texti[_lang][27], "I27.als");
flags[30] = 1;
- talk_igorpuerta(_texti[_lang][28], "I28.als");
+ talk_igor_door(_texti[_lang][28], "I28.als");
lleva_al_hare(153, 180);
} else if (pickedObject == kVerbPick && fl == 143 && flags[18] == 0) {
lleva_al_hare(260, 180);
copyBackground(80, 78, 199, 94, 38, 27, drawSurface3, screenSurface);
updateScreen(199, 94, 199, 94, 38, 27, screenSurface);
pause(3);
- talk_igor_peluca(_texti[_lang][25], "I25.als");
+ talk_igor_wig(_texti[_lang][25], "I25.als");
lleva_al_hare(153, 180);
} else if (pickedObject == kVerbTalk && fl == 51)
animation_1_4();
diff --git a/engines/drascula/talk.cpp b/engines/drascula/talk.cpp
index efec50134b..111c2e6187 100644
--- a/engines/drascula/talk.cpp
+++ b/engines/drascula/talk.cpp
@@ -1359,22 +1359,7 @@ void DrasculaEngine::talk_sinc(const char *said, const char *filename, const cha
bucless:
- if (sincronia[p] == '0')
- face = 0;
- if (sincronia[p] == '1')
- face = 1;
- if (sincronia[p] == '2')
- face = 2;
- if (sincronia[p] == '3')
- face = 3;
- if (sincronia[p] == '4')
- face = 4;
- if (sincronia[p] == '5')
- face = 5;
- if (sincronia[p] == '6')
- face = 6;
- if (sincronia[p] == '7')
- face = 7;
+ face = atoi(&sincronia[p]);
copyBackground(0, 0, 0, 0, 320, 200, drawSurface1, screenSurface);
@@ -1502,7 +1487,7 @@ bucless:
updateScreen(0, 0, 0, 0, 320, 200, screenSurface);
}
-void DrasculaEngine::talk_igorpuerta(const char *said, const char *filename) {
+void DrasculaEngine::talk_igor_door(const char *said, const char *filename) {
int length = strlen(said);
_rnd->setSeed((unsigned int)_system->getMillis() / 2);
@@ -1586,7 +1571,7 @@ bucless:
updateScreen(0, 0, 0, 0, 320, 200, screenSurface);
}
-void DrasculaEngine::talk_igor_peluca(const char *said, const char *filename) {
+void DrasculaEngine::talk_igor_wig(const char *said, const char *filename) {
int x_talk[4] = {119, 158, 197, 236};
int face = 0;
int length = strlen(said);