Star.cpp cleanup
This commit is contained in:
parent
d641f508f2
commit
b1f698f863
1 changed files with 10 additions and 8 deletions
12
src/Star.cpp
12
src/Star.cpp
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue