Player: use the source scenario for the exu destination

When changes are made in the source actions list (stabilize-shots...),
the modifications will be stored in the exu destination. This is not what we
want.
This patch fixes it by storing the original source scenario into the
destination exu.
This commit is contained in:
Daniel Zaoui 2018-10-29 00:07:10 +02:00
parent 4fc682df84
commit 3d02d1c50e
1 changed files with 7 additions and 1 deletions

View File

@ -1232,7 +1232,13 @@ int main(int argc, char **argv)
if (_dest && _dest_unit)
{
if (_src_unit) _dest_unit->actions = _src_unit->actions;
if (_src_unit)
{
Exactness_Unit *tmp = NULL;
if (_src_type == FTYPE_EXU) tmp = exactness_unit_file_read(_src_filename);
if (_src_type == FTYPE_REC) tmp = legacy_rec_file_read(_src_filename);
_dest_unit->actions = tmp->actions;
}
exactness_unit_file_write(_dest_unit, _dest);
}