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=d4356e834ab3a802392b4451e2c3097124dc4dde;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