mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fixed compiler warnings
This commit is contained in:
parent
fba5c7884d
commit
7f66df2625
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue