The "room" command can now set the current room number, too (more straightforward than changing global var 13)
svn-id: r46925
This commit is contained in:
parent
454fb24c85
commit
2f23eb99ee
3 changed files with 18 additions and 2 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue