X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameloop.cpp;h=d05379f9dd3d760b87592cf88059d714dbe46798;hb=546364c9567ef212ea9276201facf73f5ada696a;hp=15ebac5ad7855ab3c587953bce1df345e3a045f4;hpb=935c2f6a2a27248de63fba86b74a724675761487;p=supertux.git diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 15ebac5ad..d05379f9d 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -655,7 +655,8 @@ GameSession::action(double frame_ratio) int red = rand() % 255; // calculate firework color int green = rand() % red; currentsector->add_particles(epicenter, 0, 360, Vector(1.4,1.4), - Vector(0,0), 45, Color(red,green,0), 3, 1300); + Vector(0,0), 45, Color(red,green,0), 3, 1300, + LAYER_FOREGROUND1+1); SoundManager::get()->play_sound(IDToSound(SND_FIREWORKS)); random_timer.start(rand() % 400 + 600); // next firework