diff options
author | Max Horn | 2008-09-15 22:37:45 +0000 |
---|---|---|
committer | Max Horn | 2008-09-15 22:37:45 +0000 |
commit | 880bc085b160c642e360332546fe90f47a5ea852 (patch) | |
tree | c8af5819f7ef3250fc48661e7515d3153bf8adda /engines/drascula | |
parent | 7df6071a7715f141e208671ef9d2cd16a7e7a37d (diff) | |
download | scummvm-rg350-880bc085b160c642e360332546fe90f47a5ea852.tar.gz scummvm-rg350-880bc085b160c642e360332546fe90f47a5ea852.tar.bz2 scummvm-rg350-880bc085b160c642e360332546fe90f47a5ea852.zip |
Fixed compiler warnings
svn-id: r34567
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/graphics.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/drascula/graphics.cpp b/engines/drascula/graphics.cpp index 0ffa62282b..a4005e329d 100644 --- a/engines/drascula/graphics.cpp +++ b/engines/drascula/graphics.cpp @@ -303,8 +303,8 @@ void DrasculaEngine::print_abc_opc(const char *said, int screenY, int game) { bool DrasculaEngine::textFitsCentered(char *text, int x) { int len = strlen(text); - int x1 = CLIP<int>(x - len * CHAR_WIDTH / 2, 60, 255); - return (x1 + len * CHAR_WIDTH) <= 320; + int tmp = CLIP<int>(x - len * CHAR_WIDTH / 2, 60, 255); + return (tmp + len * CHAR_WIDTH) <= 320; } void DrasculaEngine::centerText(const char *message, int textX, int textY) { @@ -317,7 +317,6 @@ void DrasculaEngine::centerText(const char *message, int textX, int textY) { int curLine = 0; int x = 0; int y = textY - (3 * CHAR_HEIGHT); // original starts printing 3 lines above textY - int len = 0; strcpy(msg, message); |