diff options
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/state.cpp | 4 | ||||
-rw-r--r-- | engines/sci/engine/state.h | 1 |
2 files changed, 5 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': diff --git a/engines/sci/engine/state.h b/engines/sci/engine/state.h index 54fb14c24e..ddfebddf19 100644 --- a/engines/sci/engine/state.h +++ b/engines/sci/engine/state.h @@ -226,6 +226,7 @@ public: Script *script_000; /**< script 000, e.g. for globals */ uint16 currentRoomNumber() const; + void setRoomNumber(uint16 roomNumber); /** * Processes a multilanguage string based on the current language settings and |