aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/avalot.cpp
diff options
context:
space:
mode:
authoruruk2014-03-07 18:24:45 +0100
committeruruk2014-03-07 18:24:58 +0100
commit5b9cb372cd3705dd0776e7f431dc98ecff270256 (patch)
treeae5231a0baaf57c710935b96b68b9e4e439aa543 /engines/avalanche/avalot.cpp
parentfbc63ebd684088ddd8c65f13edf63c708dfa8881 (diff)
downloadscummvm-rg350-5b9cb372cd3705dd0776e7f431dc98ecff270256.tar.gz
scummvm-rg350-5b9cb372cd3705dd0776e7f431dc98ecff270256.tar.bz2
scummvm-rg350-5b9cb372cd3705dd0776e7f431dc98ecff270256.zip
AVALANCHE: Implement Parser::bossKey().
Revise some other parts of the engine during the process.
Diffstat (limited to 'engines/avalanche/avalot.cpp')
-rw-r--r--engines/avalanche/avalot.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index 8f619e6a13..e855c71fcf 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -416,9 +416,7 @@ void AvalancheEngine::loadAlso(byte num) {
}
}
-void AvalancheEngine::loadRoom(byte num) {
- CursorMan.showMouse(false);
-
+void AvalancheEngine::loadBackground(byte num) {
Common::String filename = Common::String::format("place%d.avd", num);
Common::File file;
if (!file.open(filename))
@@ -440,9 +438,15 @@ void AvalancheEngine::loadRoom(byte num) {
_graphics->refreshBackground();
file.close();
+}
+void AvalancheEngine::loadRoom(byte num) {
+ CursorMan.showMouse(false);
+
+ loadBackground(num);
loadAlso(num);
- _background->load(num);
+ _background->loadSprites(num);
+
CursorMan.showMouse(true);
}