aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-29 20:26:42 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-29 20:26:42 +0200
commitf8943df9e38483788eafa170912f00a62b4cffe3 (patch)
tree82625e5f885a13ba42c7665dbb8a543c55399709 /server
parent04a4902d1054a2e8776107c99ef83496b6050b60 (diff)
downloadhurrycurry-f8943df9e38483788eafa170912f00a62b4cffe3.tar
hurrycurry-f8943df9e38483788eafa170912f00a62b4cffe3.tar.bz2
hurrycurry-f8943df9e38483788eafa170912f00a62b4cffe3.tar.zst
clear points when changing maps
Diffstat (limited to 'server')
-rw-r--r--server/src/game.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/game.rs b/server/src/game.rs
index 4f609608..96cfa93a 100644
--- a/server/src/game.rs
+++ b/server/src/game.rs
@@ -106,6 +106,7 @@ impl Game {
self.unload();
self.data = gamedata.into();
+ self.points = 0;
for (&p, (tile, item)) in &self.data.initial_map {
self.tiles.insert(