From cc280f326f562fcbb1e83eb7453ff45f130c3efc Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 5 Feb 2018 22:08:14 +0000 Subject: [PATCH] Code tidying. --- src/combat/combat.c | 5 ----- src/entities/boss/boss.c | 6 ++++++ src/entities/boss/boss.h | 1 - src/entities/unit.h | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/combat/combat.c b/src/combat/combat.c index ba39665..4296298 100644 --- a/src/combat/combat.c +++ b/src/combat/combat.c @@ -23,11 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static int isBlockedByMap(Entity *src, Entity *dest); static int isBlockedByEntities(Entity *src, Entity *dest); -void lookForPlayer(void) -{ - -} - int hasLineOfSight(Entity *src, Entity *dest) { return (!isBlockedByMap(src, dest) && !isBlockedByEntities(src, dest)); diff --git a/src/entities/boss/boss.c b/src/entities/boss/boss.c index bf21f70..0add86f 100644 --- a/src/entities/boss/boss.c +++ b/src/entities/boss/boss.c @@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "boss.h" +static void lookForPlayer(void); + void initBoss(Entity *e) { Boss *b; @@ -43,3 +45,7 @@ void initBoss(Entity *e) b->flags |= EF_ALWAYS_PROCESS | EF_BOMB_SHIELD | EF_GONE; } + +static void lookForPlayer(void) +{ +} diff --git a/src/entities/boss/boss.h b/src/entities/boss/boss.h index 6b51e8a..2b54b71 100644 --- a/src/entities/boss/boss.h +++ b/src/entities/boss/boss.h @@ -21,7 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../../common.h" extern void initEntity(Entity *e); -extern void lookForPlayer(void); extern Sprite *getSprite(char *name); extern World world; diff --git a/src/entities/unit.h b/src/entities/unit.h index 92f11d2..a356b7d 100644 --- a/src/entities/unit.h +++ b/src/entities/unit.h @@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../json/cJSON.h" extern void initEntity(Entity *e); -extern void lookForPlayer(void); extern int rrnd(int low, int high); extern float limit(float i, float a, float b); extern int getDistance(int x1, int y1, int x2, int y2);