From e80e585cf538fb0509cf4cdec00f72c6eb1950ff Mon Sep 17 00:00:00 2001 From: Arkitu <85173315+Arkitu@users.noreply.github.com> Date: Sun, 20 Jul 2025 12:08:36 +0200 Subject: [PATCH] =?UTF-8?q?remove=20some=20debug=20logs=20(PS:=C2=A0the=20?= =?UTF-8?q?graphical=20bug=20in=20the=20precedent=20commit=20is=20probably?= =?UTF-8?q?=20my=20computer's=20fault,=20not=20the=20game's)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/map/cells/grow.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/map/cells/grow.rs b/src/map/cells/grow.rs index 4d279be..ca4bc67 100644 --- a/src/map/cells/grow.rs +++ b/src/map/cells/grow.rs @@ -4,7 +4,6 @@ use std::sync::Arc; use bevy::prelude::*; use bevy::tasks::{AsyncComputeTaskPool, Task}; -use log::info; use rand::rngs::SmallRng; use rand::seq::IteratorRandom; use rand::Rng; @@ -84,7 +83,6 @@ pub async fn grow_thread( loop { // Receive control from the game while let Ok(c) = rx_control.try_recv() { - println!("input {:?}", c); let id = c.voronoi_id; cells[id] = (c, 0.); } @@ -100,14 +98,12 @@ pub async fn grow_thread( for (c, modified) in cells.iter_mut() { if grass_grow > 0 { if let CellKind::Grass { ref mut wealth } = c.kind { - // info!("grass grow {}", c.voronoi_id); *wealth = wealth.saturating_add(grass_grow as WealthType); *modified += grass_grow as f32 / WealthType::MAX as f32; } } if forest_grow > 0 { if let CellKind::Forest { ref mut wealth } = c.kind { - // info!("forest grow {}", c.voronoi_id); *wealth = wealth.saturating_add(forest_grow as WealthType); *modified += grass_grow as f32 / WealthType::MAX as f32; } @@ -115,7 +111,6 @@ pub async fn grow_thread( } // Don't make multiple updates at once to avoid problems and lags } else if gt - last_grass_extend > GRASS_EXTEND_STEP { - // info!("grass extend"); for i in 0..cells.len() { if cells[i].1 < 1. { if let Some(wealth) = cells[i].0.kind.grass_wealth() { @@ -166,7 +161,6 @@ pub async fn grow_thread( .iter() .filter(|(c, _)| matches!(c.kind, CellKind::Grass { .. })) .count(); - // dbg!(grass_count); last_grass_grow += grass_grow * CellKind::GRASS.growth_duration() / WealthType::MAX as u64; last_forest_grow += forest_grow * CellKind::FOREST.growth_duration();