Clear drawBullet list when battle starts.
This commit is contained in:
parent
14aba69da8
commit
25f2204d06
|
@ -1,4 +1,4 @@
|
|||
VERSION = 0.4
|
||||
VERSION = 0.41
|
||||
REVISION = $(shell date +"%y%m%d")
|
||||
DEBUG = 0
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ void initBattle(void)
|
|||
|
||||
initStars();
|
||||
|
||||
initBullets();
|
||||
|
||||
initBackground();
|
||||
|
||||
initEffects();
|
||||
|
|
|
@ -72,6 +72,7 @@ extern void initMessageBox(void);
|
|||
extern void doMessageBox(void);
|
||||
extern void drawMessageBox(void);
|
||||
extern void resetMessageBox(void);
|
||||
extern void initBullets(void);
|
||||
|
||||
extern App app;
|
||||
extern Battle battle;
|
||||
|
|
|
@ -27,6 +27,13 @@ static Bullet bulletDef[BT_MAX];
|
|||
static Bullet *bulletsToDraw[MAX_BULLETS_TO_DRAW];
|
||||
static int incomingMissile;
|
||||
|
||||
void initBullets(void)
|
||||
{
|
||||
incomingMissile = 0;
|
||||
|
||||
memset(bulletsToDraw, 0, sizeof(Bullet*) * MAX_BULLETS_TO_DRAW);
|
||||
}
|
||||
|
||||
void initBulletDefs(void)
|
||||
{
|
||||
cJSON *root, *node;
|
||||
|
|
Loading…
Reference in New Issue