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.
master
Daniel Zaoui 4 years ago
parent 4fc682df84
commit 3d02d1c50e
  1. 8
      src/bin/player.c

@ -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);
}

Loading…
Cancel
Save