Mine deployment fix.

This commit is contained in:
Steve 2016-04-20 09:38:29 +01:00
parent 259d565809
commit a3be44a000
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;