diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-20 20:11:02 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-20 20:11:02 +0200 |
| commit | a52785f4869a09e05417f97aff1c0d5b19587463 (patch) | |
| tree | 9d288a969a6da19ddb2848ac18a22f9d3c1879b7 /server/src/commands.rs | |
| parent | f8d95d074c36ec35eee8def73b8d9f2b83c922cb (diff) | |
| download | hurrycurry-a52785f4869a09e05417f97aff1c0d5b19587463.tar hurrycurry-a52785f4869a09e05417f97aff1c0d5b19587463.tar.bz2 hurrycurry-a52785f4869a09e05417f97aff1c0d5b19587463.tar.zst | |
Refactor bot input to packet based
Diffstat (limited to 'server/src/commands.rs')
| -rw-r--r-- | server/src/commands.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs index 0a7b7643..f8016c9f 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -283,7 +283,6 @@ impl Server { .iter() .find(|(name, _)| *name == algo.as_str()) .ok_or(tre!("s.error.algo_not_found", s = algo))?; - let algo = cons(); self.entities.push(Box::new(BotDriver::new( format!("{}-bot", name.unwrap_or((*aname).to_owned())), Character { @@ -292,7 +291,7 @@ impl Server { headwear: 0, }, PlayerClass::Bot, - algo, + cons, ))); } Command::Scoreboard { map, text } => { |