diff options
author | Denis Kasak | 2009-08-01 03:26:39 +0000 |
---|---|---|
committer | Denis Kasak | 2009-08-01 03:26:39 +0000 |
commit | 5c6643f0f3e70c4465b5dcc8011d0fdbff0c5070 (patch) | |
tree | 53976790b8a5d70b2677deeb3a2b8551c0906383 /engines/draci/game.cpp | |
parent | 240871aa2020c5bfc86b6d997465a12fc9a2e3b8 (diff) | |
download | scummvm-rg350-5c6643f0f3e70c4465b5dcc8011d0fdbff0c5070.tar.gz scummvm-rg350-5c6643f0f3e70c4465b5dcc8011d0fdbff0c5070.tar.bz2 scummvm-rg350-5c6643f0f3e70c4465b5dcc8011d0fdbff0c5070.zip |
When changing rooms, set the first two game variables to the new room and gate number. Also, if the new room is the map room, set the appropriate coordinates for the dragon in the persons array.
svn-id: r42972
Diffstat (limited to 'engines/draci/game.cpp')
-rw-r--r-- | engines/draci/game.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/draci/game.cpp b/engines/draci/game.cpp index 995cd5d013..c4f1161945 100644 --- a/engines/draci/game.cpp +++ b/engines/draci/game.cpp @@ -157,6 +157,17 @@ void Game::start() { // If the scheduled room differs from the current one, do a room change if (_newRoom != _currentRoom._roomNum) { + // Set the first two variables to the new room / gate + _variables[0] = _newGate; + _variables[1] = _newRoom; + + // If the new room is the map room, set the appropriate coordinates + // for the dragon in the persons array + if (_newRoom == _info._mapRoom) { + _persons[kDragonObject]._x = 160; + _persons[kDragonObject]._y = 0; + } + setLoopSubstatus(kStatusOrdinary); // Do the actual change |