X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Ftrampoline.cpp;h=e097dcd01b367e31f8fa40779179b1b339c2d8e0;hb=78ac7aef674f518549f96160c6354b589553f952;hp=bd6c2b8bfa345a84bac4ca1bc6ffd632a46a965b;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/object/trampoline.cpp b/src/object/trampoline.cpp index bd6c2b8bf..e097dcd01 100644 --- a/src/object/trampoline.cpp +++ b/src/object/trampoline.cpp @@ -22,6 +22,7 @@ #include "sprite/sprite.hpp" #include "sprite/sprite_manager.hpp" #include "supertux/object_factory.hpp" +#include "util/reader.hpp" /* Trampoline will accelerate player to to VY_INITIAL, if * he jumps on it to VY_MIN. */ @@ -31,12 +32,12 @@ const float VY_MIN = -900; //negative, upwards const float VY_INITIAL = -500; } -Trampoline::Trampoline(const Reader& lisp) - : Rock(lisp, "images/objects/trampoline/trampoline.sprite") +Trampoline::Trampoline(const Reader& lisp) : + Rock(lisp, "images/objects/trampoline/trampoline.sprite"), + portable(true) { sound_manager->preload(TRAMPOLINE_SOUND); - portable = true; //Check if this trampoline is not portable if(lisp.get("portable", portable)) { if(!portable) {