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

summaryrefslogtreecommitdiff
path: root/source/game
diff options
context:
space:
mode:
authorWasabiRaptor <ketchupraptor@gmail.com>2025-05-25 22:30:02 -0400
committerWasabiRaptor <ketchupraptor@gmail.com>2025-05-25 22:30:02 -0400
commit5587b70c9734cacb574b0b4a034ddbd837a29ba7 (patch)
tree775de11b0a6eaffdab5403032b12b5b56d57d502 /source/game
parentab20de5a14e4bca7f8780b95c58383fb4343b23f (diff)
put this back where it should be now that netgroup is fixed
Diffstat (limited to 'source/game')
-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) {