diff options
author | Julien | 2012-07-26 17:19:58 -0400 |
---|---|---|
committer | Julien | 2012-07-27 00:15:05 -0400 |
commit | 3d6807b35905a951688508d3b696ee48c1453c4d (patch) | |
tree | 4bf9dacca0d96c2b0c1a3c4c26f1f655953c637a /engines/lastexpress/game/logic.cpp | |
parent | b4b4a7d127194cf29fdfcf5ee7b41b875d26b37e (diff) | |
download | scummvm-rg350-3d6807b35905a951688508d3b696ee48c1453c4d.tar.gz scummvm-rg350-3d6807b35905a951688508d3b696ee48c1453c4d.tar.bz2 scummvm-rg350-3d6807b35905a951688508d3b696ee48c1453c4d.zip |
LASTEXPRESS: Implement Logic::resetState()
Diffstat (limited to 'engines/lastexpress/game/logic.cpp')
-rw-r--r-- | engines/lastexpress/game/logic.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/lastexpress/game/logic.cpp b/engines/lastexpress/game/logic.cpp index 5f220479d1..c8e4c22ec5 100644 --- a/engines/lastexpress/game/logic.cpp +++ b/engines/lastexpress/game/logic.cpp @@ -408,9 +408,12 @@ void Logic::eventTick(const Common::Event &) { * Resets the game state. */ void Logic::resetState() { - getState()->scene = kSceneDefault; + getScenes()->setCoordinates(Common::Rect(80, 0, 559, 479)); - warning("[Logic::resetState] Not implemented! You need to restart the engine until this is implemented."); + SAFE_DELETE(_entities); + SAFE_DELETE(_state); + _entities = new Entities(_engine); + _state = new State(_engine); } /** |