diff options
author | Max Horn | 2008-05-30 16:39:49 +0000 |
---|---|---|
committer | Max Horn | 2008-05-30 16:39:49 +0000 |
commit | 4158ff64ed6186d517305c9b77ba42cf13daa3f1 (patch) | |
tree | e7bbf0757a49ad3137834b387ffffa0dea4202db | |
parent | d0174453ed0ba091a3fc5b76ed7f22c67a609e63 (diff) | |
download | scummvm-rg350-4158ff64ed6186d517305c9b77ba42cf13daa3f1.tar.gz scummvm-rg350-4158ff64ed6186d517305c9b77ba42cf13daa3f1.tar.bz2 scummvm-rg350-4158ff64ed6186d517305c9b77ba42cf13daa3f1.zip |
Fix warnings
svn-id: r32403
-rw-r--r-- | engines/drascula/animation.cpp | 4 | ||||
-rw-r--r-- | engines/drascula/drascula.cpp | 26 | ||||
-rw-r--r-- | engines/drascula/drascula.h | 6 |
3 files changed, 18 insertions, 18 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp index c07cff51b3..f06a777bbd 100644 --- a/engines/drascula/animation.cpp +++ b/engines/drascula/animation.cpp @@ -27,7 +27,7 @@ namespace Drascula { -void DrasculaEngine::updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delay) { +void DrasculaEngine::updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delayVal) { int x = 0; for (int n = 0; n < count; n++){ @@ -35,7 +35,7 @@ void DrasculaEngine::updateAnim(int y, int destX, int destY, int width, int heig copyBackground(x, y, destX, destY, width, height, src, screenSurface); updateScreen(destX, destY, destX, destY, width, height, screenSurface); x += width; - pause(delay); + pause(delayVal); } } diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index 426e170d08..1b381fc923 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -956,11 +956,11 @@ void DrasculaEngine::carga_escoba(const char *nom_fich) { sscanf(buffer, "%d", &isDoor[l]); if (isDoor[l] != 0) { getLine(ald, buffer, size); - sscanf(buffer, "%s", targetSurface[l]); + sscanf(buffer, "%s", _targetSurface[l]); getLine(ald, buffer, size); - sscanf(buffer, "%d", &destX[l]); + sscanf(buffer, "%d", &_destX[l]); getLine(ald, buffer, size); - sscanf(buffer, "%d", &destY[l]); + sscanf(buffer, "%d", &_destY[l]); getLine(ald, buffer, size); sscanf(buffer, "%d", &sentido_alkeva[l]); getLine(ald, buffer, size); @@ -1009,8 +1009,8 @@ void DrasculaEngine::carga_escoba(const char *nom_fich) { if (num_ejec == 2) { if (hare_x == -1) { - hare_x = destX[obj_salir]; - hare_y = destY[obj_salir] - alto_hare; + hare_x = _destX[obj_salir]; + hare_y = _destY[obj_salir] - alto_hare; } characterMoved = 0; } @@ -1065,8 +1065,8 @@ void DrasculaEngine::carga_escoba(const char *nom_fich) { if (num_ejec != 2) { if (hare_x == -1) { - hare_x = destX[obj_salir]; - hare_y = destY[obj_salir]; + hare_x = _destX[obj_salir]; + hare_y = _destY[obj_salir]; alto_hare = (CHARACTER_HEIGHT * factor_red[hare_y]) / 100; ancho_hare = (CHARACTER_WIDTH * factor_red[hare_y]) / 100; hare_y = hare_y - alto_hare; @@ -2599,7 +2599,7 @@ bool DrasculaEngine::exitRoom(int l) { return true; } clearRoom(); - strcpy(salgo, targetSurface[l]); + strcpy(salgo, _targetSurface[l]); strcat(salgo, ".ald"); hare_x = -1; carga_escoba(salgo); @@ -2633,7 +2633,7 @@ bool DrasculaEngine::exitRoom(int l) { clearRoom(); delete ald; ald = NULL; - strcpy(salgo, targetSurface[l]); + strcpy(salgo, _targetSurface[l]); strcat(salgo, ".ald"); hare_x =- 1; carga_escoba(salgo); @@ -2651,7 +2651,7 @@ bool DrasculaEngine::exitRoom(int l) { doBreak = 1; previousMusic = roomMusic; clearRoom(); - strcpy(salgo, targetSurface[l]); + strcpy(salgo, _targetSurface[l]); strcat(salgo, ".ald"); hare_x =- 1; carga_escoba(salgo); @@ -2672,7 +2672,7 @@ bool DrasculaEngine::exitRoom(int l) { if (objectNum[l] == 108) lleva_al_hare(171, 78); clearRoom(); - strcpy(salgo, targetSurface[l]); + strcpy(salgo, _targetSurface[l]); strcat(salgo, ".ald"); hare_x = -1; carga_escoba(salgo); @@ -2691,7 +2691,7 @@ bool DrasculaEngine::exitRoom(int l) { previousMusic = roomMusic; hare_se_ve = 1; clearRoom(); - strcpy(salgo, targetSurface[l]); + strcpy(salgo, _targetSurface[l]); strcat(salgo, ".ald"); hare_x = -1; carga_escoba(salgo); @@ -2709,7 +2709,7 @@ bool DrasculaEngine::exitRoom(int l) { doBreak = 1; previousMusic = roomMusic; clearRoom(); - strcpy(salgo, targetSurface[l]); + strcpy(salgo, _targetSurface[l]); strcat(salgo, ".ald"); hare_x = -1; carga_escoba(salgo); diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index 8ba248addd..8a907bcb7a 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -295,8 +295,8 @@ public: int objectNum[40], visible[40], isDoor[40]; int sitiobj_x[40], sitiobj_y[40], sentidobj[40]; int inventoryObjects[43]; - char targetSurface[40][20]; - int destX[40], destY[40], sentido_alkeva[40], alapuertakeva[40]; + char _targetSurface[40][20]; + int _destX[40], _destY[40], sentido_alkeva[40], alapuertakeva[40]; int x1[40], y1[40], x2[40], y2[40]; int takeObject, pickedObject; int withVoices; @@ -647,7 +647,7 @@ public: bool room_13(int fl); void update_13(); void update_20(); - void updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delay = 3); + void updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delayVal = 3); void updateAnim2(int y, int px, int py, int width, int height, int count, byte* src); void animation_1_3(); void animation_2_3(); |