X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fplayer.cpp;h=1a8feb6f48a033519a89f7ee9ee5e54028ddb61b;hb=70fdbd45026801f0f0f312278c69b383eaca9d3a;hp=884059f7327a3abd176a491fa3d350e6699178ef;hpb=7ffe0f4a7fe4ee1d4041a684638d07557676624c;p=supertux.git diff --git a/src/object/player.cpp b/src/object/player.cpp index 884059f73..1a8feb6f4 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -36,7 +36,7 @@ #include "game_session.hpp" #include "object/tilemap.hpp" #include "object/camera.hpp" -#include "object/gameobjs.hpp" +#include "object/particles.hpp" #include "object/portable.hpp" #include "object/bullet.hpp" #include "trigger/trigger_base.hpp" @@ -281,10 +281,9 @@ Player::handle_horizontal_input() // dust some particles Sector::current()->add_object( new Particles( - Vector(bbox.p1.x + (dir == RIGHT ? bbox.get_width() : 0), - bbox.p2.y), + Vector(dir == RIGHT ? bbox.p2.x : bbox.p1.x, bbox.p2.y), dir == RIGHT ? 270+20 : 90-40, dir == RIGHT ? 270+40 : 90-20, - Vector(280,-260), Vector(0,0.030), 3, Color(100,100,100), 3, .8, + Vector(280, -260), Vector(0, 300), 3, Color(.4, .4, .4), 3, .8, LAYER_OBJECTS+1)); ax *= 2.5;