efbb: unfreeze timer before deleting it

Before deleting the game timer unfreeze it so ecore doesn't try to handle
as pending a deleted timer.


SVN revision: 80724
This commit is contained in:
Leandro Dorileo 2012-12-11 21:13:17 +00:00
parent d2112a206e
commit a0318bb829
1 changed files with 3 additions and 0 deletions

View File

@ -708,6 +708,7 @@ level_unload(Game *game)
if (game->timer)
{
ecore_timer_thaw(game->timer);
ecore_timer_del(game->timer);
game->timer = NULL;
}
@ -968,6 +969,8 @@ _ship_time_attack_cb(void *data)
int x, y, z, w, h, d;
Eina_List *l;
if (!game->timer) return EINA_FALSE;
ephysics_body_geometry_get(game->ship, &x, &y, &z, &w, &h, &d);
if (x >= 2260)