Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this has 2 reasons: 1) In the 'unit::unit(const unit_type& u_type ..' ctor the facting is usually overwritten after the unit is constructed (at least the normal unit recruit code does that) so calling the synced rng there has no other effect than blocking undoing (in case that the unit has no traits, otherwise undoing would already be imposible because of trait generation) 2) in the 'unit::unit(const config& cfg ...' ctor it might make sense to use the synced rng, but since iirc the facing attribute is already unsynced since it changed by the drawing code (which might be skipped if animations are disabled) we also use the unsyced rng here to not block undoing (in that rare case).
- Loading branch information