- fixed compiler warnings

This commit is contained in:
Christoph Oelckers 2021-11-05 10:16:50 +01:00
parent fba5c7884d
commit 7f66df2625

View file

@ -160,7 +160,7 @@ public:
bool Run(int ticks) override; bool Run(int ticks) override;
private: private:
static constexpr int WIDTH = 320, HEIGHT = 200; enum { WIDTH = 320, HEIGHT = 200 };
int y[WIDTH]; int y[WIDTH];
}; };
@ -289,7 +289,7 @@ bool Wiper_Melt::Run(int ticks)
else if (y[i] < HEIGHT) else if (y[i] < HEIGHT)
{ {
int dy = (y[i] < 16) ? y[i] + 1 : 8; 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; done = false;
} }
if (ticks == 0) if (ticks == 0)