aboutsummaryrefslogtreecommitdiff
path: root/server/src/game.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/game.rs')
-rw-r--r--server/src/game.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/game.rs b/server/src/game.rs
index 89ea7dfc..e3d170a1 100644
--- a/server/src/game.rs
+++ b/server/src/game.rs
@@ -415,6 +415,7 @@ impl Game {
None,
packet_out,
&mut self.score,
+ &mut self.score_changed,
false,
)
} else {
@@ -433,6 +434,7 @@ impl Game {
Some(tile.kind),
packet_out,
&mut self.score,
+ &mut self.score_changed,
false,
)
}
@@ -628,6 +630,7 @@ pub fn interact_effect(
this_tile_kind: Option<TileIndex>,
packet_out: &mut VecDeque<PacketC>,
score: &mut Score,
+ score_changed: &mut bool,
automated: bool,
) {
let this_had_item = this.is_some();
@@ -651,6 +654,7 @@ pub fn interact_effect(
}
InteractEffect::Produce => {
info!("produce {this_loc} <~ {other_loc}");
+ *score_changed = true;
if this_had_item {
packet_out.push_back(PacketC::SetProgress {
item: this_loc,