aboutsummaryrefslogtreecommitdiff
path: root/server/src/state.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-19 20:16:38 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-19 20:16:38 +0200
commit239f139e7cdc2ee9f2658a8038d2870293e20aa4 (patch)
tree9b54500dd4bcb50088c60376ad1465e3349f8e70 /server/src/state.rs
parent6979c0a1b6503cb4b4e96e66cba5fc10a2d89b4b (diff)
downloadhurrycurry-239f139e7cdc2ee9f2658a8038d2870293e20aa4.tar
hurrycurry-239f139e7cdc2ee9f2658a8038d2870293e20aa4.tar.bz2
hurrycurry-239f139e7cdc2ee9f2658a8038d2870293e20aa4.tar.zst
Start moving game logic to client-lib. Moved set_tile and gamedata index
Diffstat (limited to 'server/src/state.rs')
-rw-r--r--server/src/state.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/state.rs b/server/src/state.rs
index dfcccaa5..28ef7235 100644
--- a/server/src/state.rs
+++ b/server/src/state.rs
@@ -51,6 +51,7 @@ impl Server {
_ => (),
}
+ self.packet_out.extend(self.game.events.drain(..));
while let Some(p) = self.packet_out.pop_front() {
if matches!(p, PacketC::UpdateMap { .. } | PacketC::Movement { .. }) {
trace!("-> {p:?}");