diff options
author | WasabiRaptor <ketchupraptor@gmail.com> | 2025-05-25 13:24:01 -0400 |
---|---|---|
committer | WasabiRaptor <ketchupraptor@gmail.com> | 2025-05-25 13:24:01 -0400 |
commit | 96b86c63fd168df1a8463f184932d1b39c4284ec (patch) | |
tree | d539e28869f4f40bc260512ce5d1912102d632fc /source/game | |
parent | e703ea1614d92e4dddf104ef3bec789b37562c57 (diff) |
fix for net element ordering bug
Diffstat (limited to 'source/game')
-rw-r--r-- | source/game/StarNetworkedAnimator.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/game/StarNetworkedAnimator.cpp b/source/game/StarNetworkedAnimator.cpp index 6ea3053..8dd4240 100644 --- a/source/game/StarNetworkedAnimator.cpp +++ b/source/game/StarNetworkedAnimator.cpp @@ -1265,8 +1265,6 @@ void NetworkedAnimator::setupNetStates() { for (auto& pair : m_stateInfo) { pair.second.wasUpdated = true; - pair.second.reverse.setCompatibilityVersion(8); - addNetElement(&pair.second.reverse); addNetElement(&pair.second.stateIndex); addNetElement(&pair.second.startedEvent); } @@ -1341,6 +1339,13 @@ void NetworkedAnimator::setupNetStates() { for (auto& pair : m_effects) addNetElement(&pair.second.enabled); + + // all new net elements must be added at the end of netgroups to not interfere with load order for communicating with retail clients + for (auto& pair : m_stateInfo) { + pair.second.reverse.setCompatibilityVersion(8); + addNetElement(&pair.second.reverse); + } + } void NetworkedAnimator::netElementsNeedLoad(bool initial) { |