Skip to content

Commit

Permalink
Screen.h:
Browse files Browse the repository at this point in the history
* Windows warnings fixes.
  • Loading branch information
razterizer committed Oct 2, 2024
1 parent 5761661 commit 996bb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ void draw_you_won(SpriteHandler<NR, NC>& 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<float>(i)/12.f;
auto x1 = c + wave_a*std::sin(wave_f*math::c_2pi*(x + wave_x0));
auto x1 = static_cast<int>(c) + wave_a*std::sin(wave_f*math::c_2pi*(x + wave_x0));

return std::round(x1);
};
Expand Down

0 comments on commit 996bb44

Please sign in to comment.