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:
parent
d2112a206e
commit
a0318bb829
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue