From 880bc085b160c642e360332546fe90f47a5ea852 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 15 Sep 2008 22:37:45 +0000 Subject: Fixed compiler warnings svn-id: r34567 --- engines/drascula/graphics.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines') 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(x - len * CHAR_WIDTH / 2, 60, 255); - return (x1 + len * CHAR_WIDTH) <= 320; + int tmp = CLIP(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); -- cgit v1.2.3