aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/pedestrians.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/entity/pedestrians.rs')
-rw-r--r--server/src/entity/pedestrians.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/entity/pedestrians.rs b/server/src/entity/pedestrians.rs
index 0d33bfd0..4fe91464 100644
--- a/server/src/entity/pedestrians.rs
+++ b/server/src/entity/pedestrians.rs
@@ -21,7 +21,8 @@ use super::{Entity, EntityContext};
use anyhow::Result;
use hurrycurry_locale::TrError;
use hurrycurry_protocol::{Character, PacketS, PlayerClass, PlayerID, glam::Vec2};
-use std::{collections::HashMap, random::random};
+use rand::random;
+use std::collections::HashMap;
pub struct Pedestrians {
pub players: HashMap<PlayerID, usize>,
@@ -44,8 +45,8 @@ impl Entity for Pedestrians {
id: Some(id),
name: "Pedestrian".to_string(),
character: Character {
- color: random(..),
- hairstyle: random(..),
+ color: random(),
+ hairstyle: random(),
headwear: 0,
},
class: PlayerClass::Customer,