diff --git a/Screen.h b/Screen.h index 13fb40f..9ef21e4 100644 --- a/Screen.h +++ b/Screen.h @@ -174,10 +174,10 @@ void draw_you_won(SpriteHandler& sh) wave_a = 1.f;//5.f; wave_step = 0.07f; //0.1f; - auto wave_func = [](float c, int i) + auto wave_func = [](int c, int i) { float x = static_cast(i)/12.f; - auto x1 = c + wave_a*std::sin(wave_f*math::c_2pi*(x + wave_x0)); + auto x1 = static_cast(c) + wave_a*std::sin(wave_f*math::c_2pi*(x + wave_x0)); return std::round(x1); };