From a3be44a000fca8ffbd553f6c367895e603cdabf3 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 20 Apr 2016 09:38:29 +0100 Subject: [PATCH] Mine deployment fix. --- src/battle/ai.c | 2 +- src/battle/ai.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index 1cb4112..c0e6bdb 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -636,7 +636,7 @@ static void deployMine(void) if (!self->reload && self->thrust > 0) { - mine = spawnMine(); + mine = spawnMine(ET_MINE); mine->x = self->x; mine->y = self->y; mine->dx = rand() % 20 - rand() % 20; diff --git a/src/battle/ai.h b/src/battle/ai.h index 628088b..28823bb 100644 --- a/src/battle/ai.h +++ b/src/battle/ai.h @@ -38,7 +38,7 @@ extern void applyFighterBrakes(void); extern void addHudMessage(SDL_Color c, char *format, ...); extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore); extern char *getTranslatedString(char *string); -extern Entity *spawnMine(void); +extern Entity *spawnMine(int type); extern Battle battle; extern Colors colors;