ECM fix.
This commit is contained in:
parent
5aa8e0280e
commit
91a2cda540
|
@ -224,7 +224,7 @@ static void huntTarget(Bullet *b)
|
||||||
|
|
||||||
applyMissileThrust(b);
|
applyMissileThrust(b);
|
||||||
|
|
||||||
if (b->target == player && battle.ecmTimer == ECM_RECHARGE_TIME)
|
if (b->target == player && battle.ecmTimer < FPS)
|
||||||
{
|
{
|
||||||
b->life = 0;
|
b->life = 0;
|
||||||
addMissileExplosion(b);
|
addMissileExplosion(b);
|
||||||
|
|
|
@ -24,9 +24,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include "../structs.h"
|
#include "../structs.h"
|
||||||
#include "../json/cJSON.h"
|
#include "../json/cJSON.h"
|
||||||
|
|
||||||
#define TURN_SPEED 2
|
#define TURN_SPEED 2
|
||||||
#define TURN_THRESHOLD 3
|
#define TURN_THRESHOLD 3
|
||||||
#define MAX_BULLETS_TO_DRAW 512
|
#define MAX_BULLETS_TO_DRAW 512
|
||||||
|
|
||||||
extern SDL_Texture *getTexture(char *filename);
|
extern SDL_Texture *getTexture(char *filename);
|
||||||
extern void blitRotated(SDL_Texture *texture, int x, int y, int angle);
|
extern void blitRotated(SDL_Texture *texture, int x, int y, int angle);
|
||||||
|
|
Loading…
Reference in New Issue