X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fwind.cpp;h=638ab6956ff547bc849a50a60c6de7e75811353a;hb=ae7bd4f460fdd93934fc0abc9589758a49309bda;hp=5a392c26f2ecbc9b8b3940ba6cbd7a6f88f72fa8;hpb=4a486d92343d1824b311c234e9321e08f280fe68;p=supertux.git diff --git a/src/object/wind.cpp b/src/object/wind.cpp index 5a392c26f..638ab6956 100644 --- a/src/object/wind.cpp +++ b/src/object/wind.cpp @@ -64,7 +64,7 @@ Wind::update(float elapsed_time) // emit a particle Vector ppos = Vector(systemRandom.randf(bbox.p1.x+8, bbox.p2.x-8), systemRandom.randf(bbox.p1.y+8, bbox.p2.y-8)); Vector pspeed = Vector(speed.x, speed.y); - Sector::current()->add_object(new Particles(ppos, 44, 46, pspeed, Vector(0,0), 1, Color(.4, .4, .4), 3, .1, LAYER_BACKGROUNDTILES+1)); + Sector::current()->add_object(new Particles(ppos, 44, 46, pspeed, Vector(0,0), 1, Color(.4f, .4f, .4f), 3, .1f, LAYER_BACKGROUNDTILES+1)); } }