aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/draci.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-11-12 23:33:22 +0000
committerRobert Špalek2009-11-12 23:33:22 +0000
commitde6dc9a78456e77dc10bda74b91d5f59f4c0fbd3 (patch)
tree4ac376de2fd8c1eb4545fa77426af1105db07c0e /engines/draci/draci.cpp
parent5db47f54c3cf85fcc7f48e12029ac1032cc43031 (diff)
downloadscummvm-rg350-de6dc9a78456e77dc10bda74b91d5f59f4c0fbd3.tar.gz
scummvm-rg350-de6dc9a78456e77dc10bda74b91d5f59f4c0fbd3.tar.bz2
scummvm-rg350-de6dc9a78456e77dc10bda74b91d5f59f4c0fbd3.zip
Handled loading/saving from the map location
svn-id: r45876
Diffstat (limited to 'engines/draci/draci.cpp')
-rw-r--r--engines/draci/draci.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp
index 566d3056da..fa0cf495a2 100644
--- a/engines/draci/draci.cpp
+++ b/engines/draci/draci.cpp
@@ -246,7 +246,13 @@ void DraciEngine::handleEvents() {
if (escRoom >= 0) {
// Schedule room change
- // TODO: gate 0 is not always the best one for returning from the map
+ // TODO: gate 0 (always present) is not
+ // always best for returning from the
+ // map, e.g. in the starting location.
+ // also, after loading the game, we
+ // shouldn't run any gate program, but
+ // rather restore the state of all
+ // objects.
_game->scheduleEnteringRoomUsingGate(escRoom, 0);
// Immediately cancel any running animation or dubbing.
@@ -394,8 +400,6 @@ Common::Error DraciEngine::loadGameState(int slot) {
// here are now, without waiting for any other code to finish, thanks
// to our constraint in canLoadGameStateCurrently() and to having
// enterNewRoom() called right after we exit from here.
- //
- // TODO: Handle saving in the map room
return loadSavegameData(slot, this);
}