Some cleanup.
This commit is contained in:
parent
d6f29b71b3
commit
2a032005d1
|
@ -35,7 +35,6 @@ AC_SUBST([STARFIGHTER_CFLAGS])
|
|||
AC_CHECK_HEADERS([ctype.h errno.h stdio.h stdlib.h string.h time.h math.h pwd.h sys/stat.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_INLINE
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
bin_PROGRAMS = starfighter
|
||||
|
||||
starfighter_CPPFLAGS = $(STARFIGHTER_CFLAGS) -Wall -O2 -DDATADIR=\"$(pkgdatadir)\"
|
||||
starfighter_CPPFLAGS = $(STARFIGHTER_CFLAGS) -DDATADIR=\"$(pkgdatadir)\" -Wall
|
||||
starfighter_CXXFLAGS = $(SDL_CFLAGS)
|
||||
starfighter_LDADD = $(SDL_LIBS)
|
||||
|
||||
|
|
|
@ -679,7 +679,7 @@ static void game_doBullets()
|
|||
else if (bullet->x > bullet->target->x)
|
||||
LIMIT_ADD(bullet->dx, -homingMissileSpeed, -15, 15);
|
||||
|
||||
//Rocket is (more or less) inline with target. Fly straight
|
||||
//Rocket is (more or less) in line with target. Fly straight
|
||||
if ((bullet->x > bullet->target->x - 1) && (bullet->x < bullet->target->x + 5))
|
||||
bullet->dx = 0;
|
||||
|
||||
|
@ -688,7 +688,7 @@ static void game_doBullets()
|
|||
else if (bullet->y > bullet->target->y)
|
||||
LIMIT_ADD(bullet->dy, -homingMissileSpeed, -15, 15);
|
||||
|
||||
//Rocket is (more or less) inline with target. Fly straight
|
||||
//Rocket is (more or less) in line with target. Fly straight
|
||||
if ((bullet->y > bullet->target->y - 1) && (bullet->y < bullet->target->y + 5))
|
||||
bullet->dy = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue