diff options
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 } => { |