diff options
author | Filippos Karapetis | 2008-05-30 10:02:56 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-05-30 10:02:56 +0000 |
commit | 792286874a9f64e9aa282b219bcad574919ce7b8 (patch) | |
tree | 108ed280896ea1687a241c2a65105dfe35b3012c /engines/drascula/talk.cpp | |
parent | 64def1b5624dc7068e60fe190fbeaa79f55ac9b2 (diff) | |
download | scummvm-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
Diffstat (limited to 'engines/drascula/talk.cpp')
-rw-r--r-- | engines/drascula/talk.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
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); |