diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-04 14:35:36 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-04 14:35:36 +1100 |
commit | 6c896c2ef79c1740d7dea6fae95518c768de8931 (patch) | |
tree | fce5fcd1bb6b9743cee93371b7f7d7b586a455b1 /source/game/StarWorldClientState.hpp | |
parent | be676518f4639250376842db7e48e5aaeaad9424 (diff) |
Make ping updates more accurate
Diffstat (limited to 'source/game/StarWorldClientState.hpp')
-rw-r--r-- | source/game/StarWorldClientState.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/game/StarWorldClientState.hpp b/source/game/StarWorldClientState.hpp index 31ff52f..920fef4 100644 --- a/source/game/StarWorldClientState.hpp +++ b/source/game/StarWorldClientState.hpp @@ -36,6 +36,10 @@ public: ByteArray writeDelta(); void readDelta(ByteArray delta); + // Whether the client is connected to a legacy server. + void setLegacy(bool legacy); + bool legacy() const; + void reset(); private: @@ -52,6 +56,8 @@ private: NetElementInt m_playerId; NetElementData<List<EntityId>> m_clientPresenceEntities; + + bool m_legacy; }; } |