1
0
forked from 0ad/0ad
0ad/source
wraitii 0ba9cbef74 Fix units changing appearance when switching animation.
Bug introduced in 76acc4e146.
The previous CUnit code had logic to select random aesthetic variants
once initially. The new code removed that, as I completely missed its
purpose, assuming that the random selection, being based on a seed,
would pick the same variants every time. This is incorrect because
entity selections can change the RNG calls, thus the variants, and thus
entity appearance can change when the animation changes (typically, a
horse will change color when walking and running).

The solution is to re-introduce the choice of actor selections on CUnit
creation. This makes sure that units don't change their purely-aesthetic
selections when e.g. animations change.

Reported by: Wowgetoffyourcellphone
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4205
This was SVN commit r25844.
2021-07-31 17:55:10 +00:00
..
collada Refactors smart pointers creation, reduces code duplication and improves exception safety. 2021-02-13 23:53:40 +00:00
graphics Fix units changing appearance when switching animation. 2021-07-31 17:55:10 +00:00
gui Fix rare crash on Linux when opening dropdowns. 2021-07-20 20:59:45 +00:00
i18n Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
lib Fixes an old bug with missed handle appeared in 63c1347ef7. 2021-06-07 18:45:28 +00:00
lobby Adds std namespace to shared_ptr usages in network and engine. 2021-05-22 19:28:40 +00:00
maths Fixes a bounding box projection to an incorrect camera causes the red water bug. 2021-05-15 13:33:36 +00:00
mocks More FreeBSD build fixes. 2012-01-30 06:21:11 +00:00
network Fix gamesetup player assignment issue when joining 2021-06-06 08:02:28 +00:00
pch Include CStrInternStatic where necessary only. 2021-05-18 11:09:54 +00:00
ps Fix options occasionally thinking they've been modified when they haven't. 2021-06-16 15:54:55 +00:00
renderer Replaces gui material by solid material in water waves rendering. 2021-06-06 18:13:20 +00:00
rlinterface Split off JSON-related function from ScriptInterface, clean up headers. 2021-05-14 10:18:03 +00:00
scriptinterface Fix atlas crash with RM capture the relic. 2021-06-07 18:48:16 +00:00
simulation2 Fix units changing appearance when switching animation. 2021-07-31 17:55:10 +00:00
soundmanager Tweak sound distance attenuation & add configurability 2021-05-25 06:19:25 +00:00
third_party Optimization for include resolving in PreprocessorWrapper. 2021-01-20 23:05:15 +00:00
tools Update translation credits. 2021-07-26 16:40:16 +00:00
main.cpp Implement a global task manager using a pool of worker threads 2021-06-03 14:48:38 +00:00
test_setup.cpp Implement a global task manager using a pool of worker threads 2021-06-03 14:48:38 +00:00