From 0dec1b31eb4caaf6c019be51d83eb3e4652a945b Mon Sep 17 00:00:00 2001 From: LMH Date: Sat, 28 Dec 2013 17:32:20 -1000 Subject: [PATCH] Added a dead_script to ghosttree so that issue #34 could be closed --- data/levels/test/treeboss.stl | 1 + src/badguy/ghosttree.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/data/levels/test/treeboss.stl b/data/levels/test/treeboss.stl index 178daa09f..739ad5b1e 100644 --- a/data/levels/test/treeboss.stl +++ b/data/levels/test/treeboss.stl @@ -226,6 +226,7 @@ ) ) (ghosttree + (dead-script "sector.Tux.trigger_sequence(\"fireworks\");") (x 730) (y 550) ) diff --git a/src/badguy/ghosttree.cpp b/src/badguy/ghosttree.cpp index 89ff2df63..89ce7e967 100644 --- a/src/badguy/ghosttree.cpp +++ b/src/badguy/ghosttree.cpp @@ -75,6 +75,7 @@ GhostTree::die() TreeWillOWisp *willo = *iter; willo->vanish(); } + run_dead_script(); } void -- 2.11.0