aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/timeline.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-07-11 16:15:23 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commitd1f0281e9d870b5caf8be492868be20519928df3 (patch)
tree6937285bfaaa89336828c3fe3a66775558d058ed /engines/dm/timeline.cpp
parent12dff65535144968005e1765b235ffc0b9408177 (diff)
downloadscummvm-rg350-d1f0281e9d870b5caf8be492868be20519928df3.tar.gz
scummvm-rg350-d1f0281e9d870b5caf8be492868be20519928df3.tar.bz2
scummvm-rg350-d1f0281e9d870b5caf8be492868be20519928df3.zip
DM: Add f243_timelineProcessEvent2_doorDestruction
Diffstat (limited to 'engines/dm/timeline.cpp')
-rw-r--r--engines/dm/timeline.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/dm/timeline.cpp b/engines/dm/timeline.cpp
index c8a310379b..073eeb044c 100644
--- a/engines/dm/timeline.cpp
+++ b/engines/dm/timeline.cpp
@@ -243,7 +243,7 @@ void Timeline::f261_processTimeline() {
f242_timelineProcessEvent7_squareFakewall(L0681_ps_Event);
break;
case k2_TMEventTypeDoorDestruction:
- //F0243_TIMELINE_ProcessEvent2_DoorDestruction(L0681_ps_Event);
+ f243_timelineProcessEvent2_doorDestruction(L0681_ps_Event);
break;
case k10_TMEventTypeDoor:
//F0244_TIMELINE_ProcessEvent10_Square_Door(L0681_ps_Event);
@@ -441,4 +441,11 @@ void Timeline::f242_timelineProcessEvent7_squareFakewall(TimelineEvent* event) {
L0607_puc_Square->set(k0x0004_FakeWallOpen);
}
}
+
+void Timeline::f243_timelineProcessEvent2_doorDestruction(TimelineEvent* event) {
+ Square* L0608_puc_Square;
+
+ L0608_puc_Square = (Square*)&_vm->_dungeonMan->_g271_currMapData[event->_B._location._mapX][event->_B._location._mapY];
+ L0608_puc_Square->set(k5_doorState_DESTROYED);
+}
}