Mine deployment fix.
This commit is contained in:
parent
259d565809
commit
a3be44a000
|
@ -636,7 +636,7 @@ static void deployMine(void)
|
||||||
|
|
||||||
if (!self->reload && self->thrust > 0)
|
if (!self->reload && self->thrust > 0)
|
||||||
{
|
{
|
||||||
mine = spawnMine();
|
mine = spawnMine(ET_MINE);
|
||||||
mine->x = self->x;
|
mine->x = self->x;
|
||||||
mine->y = self->y;
|
mine->y = self->y;
|
||||||
mine->dx = rand() % 20 - rand() % 20;
|
mine->dx = rand() % 20 - rand() % 20;
|
||||||
|
|
|
@ -38,7 +38,7 @@ extern void applyFighterBrakes(void);
|
||||||
extern void addHudMessage(SDL_Color c, char *format, ...);
|
extern void addHudMessage(SDL_Color c, char *format, ...);
|
||||||
extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore);
|
extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore);
|
||||||
extern char *getTranslatedString(char *string);
|
extern char *getTranslatedString(char *string);
|
||||||
extern Entity *spawnMine(void);
|
extern Entity *spawnMine(int type);
|
||||||
|
|
||||||
extern Battle battle;
|
extern Battle battle;
|
||||||
extern Colors colors;
|
extern Colors colors;
|
||||||
|
|
Loading…
Reference in New Issue