X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Frainsplash.cpp;h=c69f817a0494da81e794b427d87dc536976a06c5;hb=ae7bd4f460fdd93934fc0abc9589758a49309bda;hp=b4241f6aecb7949afd2e38f25c50c5f78f27e8d4;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/object/rainsplash.cpp b/src/object/rainsplash.cpp index b4241f6ae..c69f817a0 100644 --- a/src/object/rainsplash.cpp +++ b/src/object/rainsplash.cpp @@ -16,6 +16,7 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include #include "rainsplash.hpp" #include "sector.hpp" @@ -27,7 +28,7 @@ RainSplash::RainSplash(Vector pos, bool vertical) if (vertical) sprite = sprite_manager->create("images/objects/particles/rainsplash-vertical.sprite"); else sprite = sprite_manager->create("images/objects/particles/rainsplash.sprite"); } - + RainSplash::~RainSplash() { remove_me(); } @@ -38,7 +39,7 @@ RainSplash::hit(Player& ) } void -RainSplash::update(float time) +RainSplash::update(float time) { time = 0;//just so i don't get an "unused variable" error - don't know how to circumvent this frame++; @@ -46,7 +47,7 @@ RainSplash::update(float time) } void -RainSplash::draw(DrawingContext& context) +RainSplash::draw(DrawingContext& context) { sprite->draw(context, position, LAYER_OBJECTS); }