diff options
-rw-r--r-- | engines/drascula/animation.cpp | 4 | ||||
-rw-r--r-- | engines/drascula/drascula.cpp | 14 |
2 files changed, 5 insertions, 13 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp index 2217edf2a3..dc29b45c84 100644 --- a/engines/drascula/animation.cpp +++ b/engines/drascula/animation.cpp @@ -994,9 +994,7 @@ void DrasculaEngine::animation_16_2() { asco: loadPic(roomDisk, drawSurface3); - char rm[20]; - sprintf(rm, "%i.alg", roomNumber); - loadPic(rm, drawSurface1, HALF_PAL); + loadPic(roomNumber, drawSurface1, HALF_PAL); black(); updateRoom(); updateScreen(); diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index d069880727..89f6e36f76 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -900,11 +900,9 @@ void DrasculaEngine::enterRoom(int roomIndex) { } characterMoved = 0; } - loadPic(roomDisk, drawSurface3); - char rm[20]; - sprintf(rm, "%i.alg", roomNumber); - loadPic(rm, drawSurface1, HALF_PAL); + loadPic(roomDisk, drawSurface3); + loadPic(roomNumber, drawSurface1, HALF_PAL); copyBackground(0, 171, 0, 0, OBJWIDTH, OBJHEIGHT, backSurface, drawSurface3); @@ -1457,9 +1455,7 @@ bool DrasculaEngine::saves() { } clearRoom(); - char rm[20]; - sprintf(rm, "%i.alg", roomNumber); - loadPic(rm, drawSurface1, HALF_PAL); + loadPic(roomNumber, drawSurface1, HALF_PAL); selectionMade = 0; return true; @@ -1679,9 +1675,7 @@ void DrasculaEngine::screenSaver() { free(copia); free(ghost); - char rm[20]; - sprintf(rm, "%i.alg", roomNumber); - loadPic(rm, drawSurface1, HALF_PAL); + loadPic(roomNumber, drawSurface1, HALF_PAL); } void DrasculaEngine::fliplay(const char *filefli, int vel) { |