Move scenario cleaning from player to inspector

This commit is contained in:
Daniel Zaoui 2018-10-30 16:21:31 +02:00
parent 89a207bd34
commit b2cf106517
2 changed files with 5 additions and 5 deletions

View File

@ -1356,6 +1356,11 @@ main(int argc, char *argv[])
if (_is_hook_duplicate(act, eina_list_data_get(eina_list_prev(itr))))
unit->actions = eina_list_remove_list(unit->actions, itr);
}
EINA_LIST_REVERSE_FOREACH_SAFE(unit->actions, itr, itr2, act)
{
if (act->type == EXACTNESS_ACTION_TAKE_SHOT) break;
unit->actions = eina_list_remove(unit->actions, act);
}
write_file = EINA_TRUE;
}

View File

@ -810,11 +810,6 @@ _src_open()
_src_unit = legacy_rec_file_read(_src_filename);
}
if (!_src_unit) return EINA_FALSE;
EINA_LIST_REVERSE_FOREACH_SAFE(_src_unit->actions, itr, itr2, act)
{
if (act->type == EXACTNESS_ACTION_TAKE_SHOT) break;
_src_unit->actions = eina_list_remove(_src_unit->actions, act);
}
if (_stabilize_shots)
{
Exactness_Action_Type last_action_type = EXACTNESS_ACTION_UNKNOWN;