]> git.tdb.fi Git - libs/game.git/commit
Avoid sending a packet to the same connection more than once
authorMikko Rasa <tdb@tdb.fi>
Thu, 11 Jan 2024 21:15:25 +0000 (23:15 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 11 Jan 2024 21:45:57 +0000 (23:45 +0200)
commit61e45174d9e487800845a36c77dac83ad3a5cb0c
treec099fd874a23230acf8e8a75d19cc8d6381128d3
parentae8e23f3dba26692b8fce84e52b4e1c37437e290
Avoid sending a packet to the same connection more than once

To keep things efficient, player IDs are now stored as 32-bit quantities,
with the high 16 bits containing an ID for the client connection.  Only
the lower 16 bits are transmitted on the network to avoid leaking
information on which players share the same connection.
source/game/events.h
source/game/networking.cpp
source/game/networking.h
source/game/possessed.cpp
source/game/possessed.h
source/game/replicator.cpp
source/game/replicator.h
source/game/spawner.cpp
source/game/spawner.h