diff options
author | WasabiRaptor <ketchupraptor@gmail.com> | 2025-05-21 22:34:08 -0400 |
---|---|---|
committer | WasabiRaptor <ketchupraptor@gmail.com> | 2025-05-21 22:34:08 -0400 |
commit | e703ea1614d92e4dddf104ef3bec789b37562c57 (patch) | |
tree | 3153d4613a368fbba692aee66d2fc507d98bebd3 /source/game | |
parent | cd2dc5a603b60191461e4360b0a6949eff7138f5 (diff) |
potential fixes
Diffstat (limited to 'source/game')
-rw-r--r-- | source/game/StarNetworkedAnimator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarNetworkedAnimator.cpp b/source/game/StarNetworkedAnimator.cpp index 31bd066..6ea3053 100644 --- a/source/game/StarNetworkedAnimator.cpp +++ b/source/game/StarNetworkedAnimator.cpp @@ -1264,6 +1264,7 @@ void NetworkedAnimator::setupNetStates() { addNetElement(&m_partTags[part]); for (auto& pair : m_stateInfo) { + pair.second.wasUpdated = true; pair.second.reverse.setCompatibilityVersion(8); addNetElement(&pair.second.reverse); addNetElement(&pair.second.stateIndex); @@ -1356,7 +1357,7 @@ void NetworkedAnimator::netElementsNeedLoad(bool initial) { void NetworkedAnimator::netElementsNeedStore() { for (auto& pair : m_stateInfo) { - if (pair.second.wasUpdated) { + if (pair.second.wasUpdated || (version() < 1)) { pair.second.stateIndex.set(m_animatedParts.activeStateIndex(pair.first)); pair.second.reverse.set(m_animatedParts.activeStateReverse(pair.first)); } |