diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-05 19:15:47 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-11 15:19:17 +1000 |
commit | 37f3178d33ab77de064bcbf10b4b03ddb47cc979 (patch) | |
tree | 76e3b3ce2d8716577af98e2bbbc4a41021db5107 /source/game/StarWeather.cpp | |
parent | 90db1e0fbadaeb625691d3d0d13f5ae6ef057109 (diff) |
Network compatibility changes
Diffstat (limited to 'source/game/StarWeather.cpp')
-rw-r--r-- | source/game/StarWeather.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarWeather.cpp b/source/game/StarWeather.cpp index 6b1c6a7..6fe1a53 100644 --- a/source/game/StarWeather.cpp +++ b/source/game/StarWeather.cpp @@ -55,9 +55,9 @@ void ServerWeather::setClientVisibleRegions(List<RectI> regions) { m_clientVisibleRegions = std::move(regions); } -pair<ByteArray, uint64_t> ServerWeather::writeUpdate(uint64_t fromVersion) { +pair<ByteArray, uint64_t> ServerWeather::writeUpdate(uint64_t fromVersion, NetCompatibilityRules rules) { setNetStates(); - return m_netGroup.writeNetState(fromVersion); + return m_netGroup.writeNetState(fromVersion, rules); } void ServerWeather::update(double dt) { @@ -263,9 +263,9 @@ void ClientWeather::setup(WorldGeometry worldGeometry, WeatherEffectsActiveQuery m_currentTime = 0.0; } -void ClientWeather::readUpdate(ByteArray data) { +void ClientWeather::readUpdate(ByteArray data, NetCompatibilityRules rules) { if (!data.empty()) { - m_netGroup.readNetState(std::move(data)); + m_netGroup.readNetState(data, 0.0f, rules); getNetStates(); } } |