From: Christoph Sommer Date: Sat, 15 Apr 2006 22:52:47 +0000 (+0000) Subject: Spiky, Snowball and Poison Ivy can move again X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=eb56eb1871645e00910046e91df106bdfe1dc916;p=supertux.git Spiky, Snowball and Poison Ivy can move again SVN-Revision: 3348 --- diff --git a/src/badguy/poisonivy.cpp b/src/badguy/poisonivy.cpp index cd8e16ba5..904d0d3a5 100644 --- a/src/badguy/poisonivy.cpp +++ b/src/badguy/poisonivy.cpp @@ -66,8 +66,10 @@ PoisonIvy::activate() } void -PoisonIvy::active_update(float ) +PoisonIvy::active_update(float elapsed_time) { + BadGuy::active_update(elapsed_time); + if (stay_on_platform && may_fall_off_platform()) { dir = (dir == LEFT ? RIGHT : LEFT); diff --git a/src/badguy/snowball.cpp b/src/badguy/snowball.cpp index c9e2ed81d..63e12466f 100644 --- a/src/badguy/snowball.cpp +++ b/src/badguy/snowball.cpp @@ -76,8 +76,10 @@ SnowBall::activate() } void -SnowBall::active_update(float ) +SnowBall::active_update(float elapsed_time) { + BadGuy::active_update(elapsed_time); + if (stay_on_platform && may_fall_off_platform()) { dir = (dir == LEFT ? RIGHT : LEFT); diff --git a/src/badguy/spiky.cpp b/src/badguy/spiky.cpp index 6d7a4efb9..536e63ed9 100644 --- a/src/badguy/spiky.cpp +++ b/src/badguy/spiky.cpp @@ -53,8 +53,10 @@ Spiky::activate() } void -Spiky::active_update(float ) +Spiky::active_update(float elapsed_time) { + BadGuy::active_update(elapsed_time); + if (stay_on_platform && may_fall_off_platform()) { dir = (dir == LEFT ? RIGHT : LEFT);