diff options
author | Filippos Karapetis | 2010-01-03 15:08:26 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-03 15:08:26 +0000 |
commit | 2f23eb99ee75db397593fc0dc8f389fc1f3316ce (patch) | |
tree | ba205364f1f8559b4de78f41a10c12ea7977b17b /engines/sci/engine/state.cpp | |
parent | 454fb24c852b05dbd7b4fbcd3f74f902e1877aa8 (diff) | |
download | scummvm-rg350-2f23eb99ee75db397593fc0dc8f389fc1f3316ce.tar.gz scummvm-rg350-2f23eb99ee75db397593fc0dc8f389fc1f3316ce.tar.bz2 scummvm-rg350-2f23eb99ee75db397593fc0dc8f389fc1f3316ce.zip |
The "room" command can now set the current room number, too (more straightforward than changing global var 13)
svn-id: r46925
Diffstat (limited to 'engines/sci/engine/state.cpp')
-rw-r--r-- | engines/sci/engine/state.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/state.cpp b/engines/sci/engine/state.cpp index a6b924b4a8..167fab5de9 100644 --- a/engines/sci/engine/state.cpp +++ b/engines/sci/engine/state.cpp @@ -120,6 +120,10 @@ uint16 EngineState::currentRoomNumber() const { return script_000->_localsBlock->_locals[13].toUint16(); } +void EngineState::setRoomNumber(uint16 roomNumber) { + script_000->_localsBlock->_locals[13] = make_reg(0, roomNumber); +} + kLanguage EngineState::charToLanguage(const char c) const { switch (c) { case 'F': |