Skip to content

Commit

Permalink
- fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Nov 6, 2021
1 parent fba5c78 commit 7f66df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendering/2d/f_wipe.cpp
Expand Up @@ -160,7 +160,7 @@ class Wiper_Melt : public Wiper
bool Run(int ticks) override;

private:
static constexpr int WIDTH = 320, HEIGHT = 200;
enum { WIDTH = 320, HEIGHT = 200 };
int y[WIDTH];
};

Expand Down Expand Up @@ -289,7 +289,7 @@ bool Wiper_Melt::Run(int ticks)
else if (y[i] < HEIGHT)
{
int dy = (y[i] < 16) ? y[i] + 1 : 8;
y[i] = min(y[i] + dy, HEIGHT);
y[i] = min<int>(y[i] + dy, HEIGHT);
done = false;
}
if (ticks == 0)
Expand Down

0 comments on commit 7f66df2

Please sign in to comment.