Remove info points if game is complete.

This commit is contained in:
Steve 2018-03-21 18:07:15 +00:00
parent 7f705a6641
commit 4d07b005f0
2 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,11 @@ Entity *initInfoPoint(void)
static void init(void)
{
self->ty = self->y;
if (game.isComplete)
{
self->alive = ALIVE_DEAD;
}
}
static void tick(void)

View File

@ -26,5 +26,6 @@ extern Sprite *getSprite(char *name);
extern void showInfoMessage(char *message);
extern Entity *self;
extern Game game;
extern World world;