From: LMH Date: Sun, 29 Dec 2013 03:32:20 +0000 (-1000) Subject: Added a dead_script to ghosttree so that issue #34 could be closed X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0dec1b31eb4caaf6c019be51d83eb3e4652a945b;p=supertux.git Added a dead_script to ghosttree so that issue #34 could be closed --- 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