From 6c896c2ef79c1740d7dea6fae95518c768de8931 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:35:36 +1100 Subject: Make ping updates more accurate --- source/game/StarWorldClientState.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/game/StarWorldClientState.cpp') 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; } -- cgit v1.2.3