From 91a2cda54017c70c908746ecafde60628320b01f Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 16 Nov 2015 16:25:08 +0000 Subject: [PATCH] ECM fix. --- src/battle/bullets.c | 2 +- src/battle/bullets.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/battle/bullets.c b/src/battle/bullets.c index 13f83bd..6200007 100644 --- a/src/battle/bullets.c +++ b/src/battle/bullets.c @@ -224,7 +224,7 @@ static void huntTarget(Bullet *b) applyMissileThrust(b); - if (b->target == player && battle.ecmTimer == ECM_RECHARGE_TIME) + if (b->target == player && battle.ecmTimer < FPS) { b->life = 0; addMissileExplosion(b); diff --git a/src/battle/bullets.h b/src/battle/bullets.h index 6330ed1..aae9421 100644 --- a/src/battle/bullets.h +++ b/src/battle/bullets.h @@ -24,9 +24,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../structs.h" #include "../json/cJSON.h" -#define TURN_SPEED 2 -#define TURN_THRESHOLD 3 -#define MAX_BULLETS_TO_DRAW 512 +#define TURN_SPEED 2 +#define TURN_THRESHOLD 3 +#define MAX_BULLETS_TO_DRAW 512 extern SDL_Texture *getTexture(char *filename); extern void blitRotated(SDL_Texture *texture, int x, int y, int angle);