aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl_v4.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-12-22 22:28:57 +0100
committerWalter van Niftrik2016-12-22 22:33:02 +0100
commit33dc1c88f2975e402f9a44b372ef688e49b51cf5 (patch)
tree0056d852acbe2b7efa89cbd191fee9295d7e473b /engines/adl/adl_v4.cpp
parent57864f5e6c44bdecaeecfba8e0754e1d19f3cb96 (diff)
downloadscummvm-rg350-33dc1c88f2975e402f9a44b372ef688e49b51cf5.tar.gz
scummvm-rg350-33dc1c88f2975e402f9a44b372ef688e49b51cf5.tar.bz2
scummvm-rg350-33dc1c88f2975e402f9a44b372ef688e49b51cf5.zip
ADL: Make 'room' debug command behave like opcode
Diffstat (limited to 'engines/adl/adl_v4.cpp')
-rw-r--r--engines/adl/adl_v4.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/engines/adl/adl_v4.cpp b/engines/adl/adl_v4.cpp
index 456ee10dca..613ffd8832 100644
--- a/engines/adl/adl_v4.cpp
+++ b/engines/adl/adl_v4.cpp
@@ -268,6 +268,14 @@ void AdlEngine_v4::switchRegion(byte region) {
_picOnScreen = _roomOnScreen = 0;
}
+void AdlEngine_v4::switchRoom(byte roomNr) {
+ getCurRoom().curPicture = getCurRoom().picture;
+ getCurRoom().isFirstTime = false;
+ backupRoomState(_state.room);
+ _state.room = roomNr;
+ restoreRoomState(_state.room);
+}
+
int AdlEngine_v4::o4_isItemInRoom(ScriptEnv &e) {
OP_DEBUG_2("\t&& GET_ITEM_ROOM(%s) == %s", itemStr(e.arg(1)).c_str(), itemRoomStr(e.arg(2)).c_str());
@@ -297,17 +305,6 @@ int AdlEngine_v4::o4_moveItem(ScriptEnv &e) {
return 2;
}
-int AdlEngine_v4::o4_setRoom(ScriptEnv &e) {
- OP_DEBUG_1("\tROOM = %d", e.arg(1));
-
- getCurRoom().curPicture = getCurRoom().picture;
- getCurRoom().isFirstTime = false;
- backupRoomState(_state.room);
- _state.room = e.arg(1);
- restoreRoomState(_state.room);
- return 1;
-}
-
int AdlEngine_v4::o4_setRegionToPrev(ScriptEnv &e) {
OP_DEBUG_0("\tREGION = PREV_REGION");