From 239f139e7cdc2ee9f2658a8038d2870293e20aa4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 19 Oct 2025 20:16:38 +0200 Subject: Start moving game logic to client-lib. Moved set_tile and gamedata index --- server/src/entity/campaign.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/src/entity') diff --git a/server/src/entity/campaign.rs b/server/src/entity/campaign.rs index ddbdc3bc..1966fc01 100644 --- a/server/src/entity/campaign.rs +++ b/server/src/entity/campaign.rs @@ -16,7 +16,7 @@ */ use super::{Entity, EntityContext}; -use crate::{scoreboard::ScoreboardStore, server::GameServerExt}; +use crate::scoreboard::ScoreboardStore; use anyhow::Result; use hurrycurry_data::entities::GateCondition; use hurrycurry_locale::{TrError, trm}; @@ -60,9 +60,7 @@ impl Entity for Gate { self.active = false; self.unlocked = self.condition.check(c.scoreboard); if !self.unlocked { - c.game - .set_tile(self.pos, Some(self.blocker_tile), c.packet_out); - c.packet_out.push_back(PacketC::FlushMap); // TODO dont send too often + c.game.set_tile(self.pos, Some(self.blocker_tile)); } } Ok(()) -- cgit v1.3