aboutsummaryrefslogtreecommitdiff
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
parent12dff65535144968005e1765b235ffc0b9408177 (diff)
downloadscummvm-rg350-d1f0281e9d870b5caf8be492868be20519928df3.tar.gz
scummvm-rg350-d1f0281e9d870b5caf8be492868be20519928df3.tar.bz2
scummvm-rg350-d1f0281e9d870b5caf8be492868be20519928df3.zip
DM: Add f243_timelineProcessEvent2_doorDestruction
-rw-r--r--engines/dm/timeline.cpp9
-rw-r--r--engines/dm/timeline.h1
2 files changed, 9 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);
+}
}
diff --git a/engines/dm/timeline.h b/engines/dm/timeline.h
index b34a98b53d..aeb9cc7b00 100644
--- a/engines/dm/timeline.h
+++ b/engines/dm/timeline.h
@@ -164,6 +164,7 @@ public:
void f239_timelineExtractFirstEvent(TimelineEvent *event); // @ F0239_TIMELINE_ExtractFirstEvent
void f241_timelineProcessEvent1_doorAnimation(TimelineEvent *event); // @ F0241_TIMELINE_ProcessEvent1_DoorAnimation
void f242_timelineProcessEvent7_squareFakewall(TimelineEvent *event); // @ F0242_TIMELINE_ProcessEvent7_Square_FakeWall
+ void f243_timelineProcessEvent2_doorDestruction(TimelineEvent *event); // @ F0243_TIMELINE_ProcessEvent2_DoorDestruction
};