summaryrefslogtreecommitdiff
path: root/server/src/entity/customers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/entity/customers.rs')
-rw-r--r--server/src/entity/customers.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/entity/customers.rs b/server/src/entity/customers.rs
index 0c3ced8d..02051901 100644
--- a/server/src/entity/customers.rs
+++ b/server/src/entity/customers.rs
@@ -17,7 +17,7 @@
*/
use super::{bot::BotDriver, Entity, EntityContext};
use anyhow::Result;
-use hurrycurry_bot::algos::Customer;
+use hurrycurry_bot::algos::{Customer, CustomerConfig};
use hurrycurry_protocol::PlayerClass;
use rand::random;
@@ -58,7 +58,9 @@ impl Entity for Customers {
"".to_string(),
-1 - random::<u16>() as i32,
PlayerClass::Customer,
- Customer::default(),
+ Customer::new(CustomerConfig {
+ unknown_order: !c.serverdata.flags.disable_unknown_orders,
+ }),
);
self.customers.push(bot)
}