Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/game/StarNetworkedAnimator.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/game/StarNetworkedAnimator.cpp b/source/game/StarNetworkedAnimator.cpp
index 8dd4240..7c070fa 100644
--- a/source/game/StarNetworkedAnimator.cpp
+++ b/source/game/StarNetworkedAnimator.cpp
@@ -1265,6 +1265,8 @@ 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);
}
@@ -1340,12 +1342,6 @@ 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) {