aboutsummaryrefslogtreecommitdiff
path: root/server/src/customer/mod.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-20 16:22:34 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:24:32 +0200
commit20556b7f754ff40860cc69bb3cd67b42581509a3 (patch)
tree86f61e78a6b2dab0493c24d3b72e724bf675067e /server/src/customer/mod.rs
parenteb446e1f786cbfe9af7f2ececca02f53d46d1ee4 (diff)
downloadhurrycurry-20556b7f754ff40860cc69bb3cd67b42581509a3.tar
hurrycurry-20556b7f754ff40860cc69bb3cd67b42581509a3.tar.bz2
hurrycurry-20556b7f754ff40860cc69bb3cd67b42581509a3.tar.zst
add server-side collision and interable list
Diffstat (limited to 'server/src/customer/mod.rs')
-rw-r--r--server/src/customer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs
index fa67de57..4b715c78 100644
--- a/server/src/customer/mod.rs
+++ b/server/src/customer/mod.rs
@@ -78,7 +78,7 @@ pub async fn customer(game: Arc<RwLock<Game>>, mut grx: broadcast::Receiver<Pack
}
PacketC::UpdateMap { pos, tile, .. } => {
let tilename = state.demand.data.tile_name(tile);
- if tilename == "floor" || tilename == "door" || tilename == "chair" {
+ if !state.demand.data.is_tile_colliding(tile) {
state.walkable.insert(pos);
}
if tilename == "chair" {