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;