aboutsummaryrefslogtreecommitdiff
path: root/server/src/state.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-02 13:21:42 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-02 14:18:02 +0200
commite9e1692fb34b661e7c928c9b4b440dcb655eb062 (patch)
treebdee10693f4fd04501214a9d3cdaa086dd6f57d9 /server/src/state.rs
parente769071244de0bdfe53c2b570b8cc6629cc5ec6c (diff)
downloadhurrycurry-e9e1692fb34b661e7c928c9b4b440dcb655eb062.tar
hurrycurry-e9e1692fb34b661e7c928c9b4b440dcb655eb062.tar.bz2
hurrycurry-e9e1692fb34b661e7c928c9b4b440dcb655eb062.tar.zst
save finishes to scoreboard
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 ad22cad2..5e0302b2 100644
--- a/server/src/state.rs
+++ b/server/src/state.rs
@@ -24,6 +24,7 @@ impl Server {
pub async fn tick_outer(&mut self, dt: f32) -> anyhow::Result<()> {
let r = self.tick(dt);
if let Some((name, timer)) = r {
+ self.scoreboard.save().await?;
self.load(self.index.generate(&name).await?, timer);
}
while let Some(p) = self.packet_out.pop_front() {