diff options
author | Filippos Karapetis | 2008-06-04 10:29:28 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-06-04 10:29:28 +0000 |
commit | a8d8f23f69b856caab5712ea1fe6dff9d0f89d12 (patch) | |
tree | 13aecb62faf0aec9c5bc88df70193320a725c0fa /engines | |
parent | 052d6f6bff3ec786cfa121cbd5648da85f9d6630 (diff) | |
download | scummvm-rg350-a8d8f23f69b856caab5712ea1fe6dff9d0f89d12.tar.gz scummvm-rg350-a8d8f23f69b856caab5712ea1fe6dff9d0f89d12.tar.bz2 scummvm-rg350-a8d8f23f69b856caab5712ea1fe6dff9d0f89d12.zip |
Simplified some more calls to loadPic()
svn-id: r32534
Diffstat (limited to 'engines')
-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) { |