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

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClientState.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-04 14:35:36 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-04 14:35:36 +1100
commit6c896c2ef79c1740d7dea6fae95518c768de8931 (patch)
treefce5fcd1bb6b9743cee93371b7f7d7b586a455b1 /source/game/StarWorldClientState.cpp
parentbe676518f4639250376842db7e48e5aaeaad9424 (diff)
Make ping updates more accurate
Diffstat (limited to 'source/game/StarWorldClientState.cpp')
-rw-r--r--source/game/StarWorldClientState.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/game/StarWorldClientState.cpp b/source/game/StarWorldClientState.cpp
index 5dc6b12..21552cd 100644
--- a/source/game/StarWorldClientState.cpp
+++ b/source/game/StarWorldClientState.cpp
@@ -22,6 +22,8 @@ WorldClientState::WorldClientState() {
m_netGroup.addNetElement(&m_playerId);
m_netGroup.addNetElement(&m_clientPresenceEntities);
+
+ m_legacy = false;
}
RectI WorldClientState::window() const {
@@ -87,6 +89,14 @@ void WorldClientState::readDelta(ByteArray delta) {
m_netGroup.readNetState(std::move(delta));
}
+void WorldClientState::setLegacy(bool legacy) {
+ m_legacy = legacy;
+}
+
+bool WorldClientState::legacy() const {
+ return m_legacy;
+}
+
void WorldClientState::reset() {
m_netVersion = 0;
}