Star.cpp cleanup

This commit is contained in:
Clownacy 2019-11-14 00:14:50 +00:00
parent d641f508f2
commit b1f698f863

View file

@ -27,7 +27,7 @@ static struct
RECT rect;
} star[3];
void InitStar()
void InitStar(void)
{
// Clear stars
memset(star, 0, sizeof(star));
@ -53,15 +53,17 @@ void InitStar()
star[2].ym = 0x200;
}
void ActStar()
void ActStar(void)
{
int i;
static int a;
a++;
++a;
a %= 3;
for (int i = 0; i < 3; i++)
for (i = 0; i < 3; ++i)
{
if (i)
if (i != 0)
{
if (star[i - 1].x < star[i].x)
star[i].xm -= 0x80;