From 2a032005d1d7a6528257638d6848675e4c7275d4 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Thu, 26 Jan 2017 23:05:21 -0500 Subject: [PATCH] Some cleanup. --- configure.ac | 1 - src/Makefile.am | 2 +- src/game.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e03bbb5..c7bf432 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/Makefile.am b/src/Makefile.am index 7b44d3b..cff325c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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) diff --git a/src/game.cpp b/src/game.cpp index 9667215..2f6a72b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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;