X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbadguy%2Fflyingsnowball.cpp;h=2ad19e45fb44fee98a6f48cc37aa9aaaae5a4b52;hb=fbfe2d469988518ba7e58b7230a3ce68e9ca5da5;hp=564e76e505950570cd3b56c78617a0fd3dd2701b;hpb=729bc6717bf68314dc9fad25db3a9f728062263e;p=supertux.git diff --git a/src/badguy/flyingsnowball.cpp b/src/badguy/flyingsnowball.cpp index 564e76e50..2ad19e45f 100644 --- a/src/badguy/flyingsnowball.cpp +++ b/src/badguy/flyingsnowball.cpp @@ -52,8 +52,8 @@ FlyingSnowBall::initialize() void FlyingSnowBall::activate() { - puff_timer.start(systemRandom.randf(PUFF_INTERVAL_MIN, PUFF_INTERVAL_MAX)); - normal_propeller_speed = systemRandom.randf(0.95, 1.05); + puff_timer.start(gameRandom.randf(PUFF_INTERVAL_MIN, PUFF_INTERVAL_MAX)); + normal_propeller_speed = gameRandom.randf(0.95, 1.05); } bool @@ -111,12 +111,12 @@ FlyingSnowBall::active_update(float elapsed_time) // spawn smoke puffs if (puff_timer.check()) { Vector ppos = bbox.get_middle(); - Vector pspeed = Vector(systemRandom.randf(-10, 10), 150); + Vector pspeed = Vector(gameRandom.randf(-10, 10), 150); Vector paccel = Vector(0,0); Sector::current()->add_object(new SpriteParticle("images/objects/particles/smoke.sprite", "default", ppos, ANCHOR_MIDDLE, pspeed, paccel, LAYER_OBJECTS-1)); - puff_timer.start(systemRandom.randf(PUFF_INTERVAL_MIN, PUFF_INTERVAL_MAX)); + puff_timer.start(gameRandom.randf(PUFF_INTERVAL_MIN, PUFF_INTERVAL_MAX)); - normal_propeller_speed = systemRandom.randf(0.95, 1.05); + normal_propeller_speed = gameRandom.randf(0.95, 1.05); physic.set_velocity_y(physic.get_velocity_y() - 50); } }