summaryrefslogtreecommitdiff
path: root/galax.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2022-12-12 00:14:27 +0000
committerIan C <ianc@noddybox.co.uk>2022-12-12 00:14:27 +0000
commit6fbbb527533b6dd6149cdf7afe47089601288355 (patch)
tree6a0f8216ccb7cfecd33c3a66dd7ebb8d952cee2d /galax.c
parent5e5eb13c01f9ebe7321e4e2ae196d2bdd2a6f588 (diff)
Updated Makefile for MacOS and fixed some compiler warnings.HEADmaster
Diffstat (limited to 'galax.c')
-rw-r--r--galax.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/galax.c b/galax.c
index e9596ef..2ed9170 100644
--- a/galax.c
+++ b/galax.c
@@ -531,7 +531,6 @@ static XFuncControl Key(Window w, XPressRelease s, XEvent *e)
break;
default:
- keymap[NONE]=False;
break;
}
}
@@ -1685,6 +1684,7 @@ static void MoveAliens(void)
case 6: /* THE COLLECTIVE 1 */
for(f=0;f<no_aliens;f++)
if (alien[f].alive)
+ {
if (spr[GALAX1]->data[alien[f].sy][alien[f].sx]!=BLACK)
{
alien[f].x=WINW/2-(SPRW+2)*4+alien[f].sx*(SPRW+2);
@@ -1695,12 +1695,14 @@ static void MoveAliens(void)
alien[f].x=-100;
alien[f].y=SHIPY;
}
+ }
break;
case 7: /* THE COLLECTIVE 2 */
for(f=0;f<no_aliens;f++)
if (alien[f].alive)
+ {
if (spr[GALAX2]->data[alien[f].sy][alien[f].sx]!=BLACK)
{
alien[f].x=WINW/2-(SPRW+2)*4+alien[f].sx*(SPRW+2);
@@ -1711,12 +1713,14 @@ static void MoveAliens(void)
alien[f].x=-100;
alien[f].y=SHIPY;
}
+ }
break;
case 8: /* THE COLLECTIVE 3 */
for(f=0;f<no_aliens;f++)
if (alien[f].alive)
+ {
if (spr[GALAX3]->data[alien[f].sy][alien[f].sx]!=BLACK)
{
alien[f].x=WINW/2-(SPRW+2)*4+alien[f].sx*(SPRW+2);
@@ -1727,6 +1731,7 @@ static void MoveAliens(void)
alien[f].x=-100;
alien[f].y=SHIPY;
}
+ }
break;
@@ -1734,6 +1739,7 @@ static void MoveAliens(void)
for(y=f=0;y<3;y++)
for(x=0;x<20;x++,f++)
if (alien[f].alive)
+ {
if (y%2)
{
if ((alien[f].x+=(y+1))>=WINW)
@@ -1744,6 +1750,7 @@ static void MoveAliens(void)
if ((alien[f].x-=(y+1))<=-SPRW)
alien[f].x+=WINW+SPRW;
}
+ }
break;