diff --git a/src/profile.rs b/src/profile.rs index 2d145b6..5eaf33b 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -23,7 +23,12 @@ impl LaunchSpec { /// The vanilla dedicated-server args to spawn `bots` alive units on `map`, in the exact order the /// live launch requires. pub fn args(&self, map: &str, bots: u32) -> Vec { - let mut a: Vec = vec!["-dedicated".into(), "-insecure".into()]; + let mut a: Vec = vec![ + "-dedicated".into(), + "-insecure".into(), + "-port".into(), + "24015".into(), + ]; for (k, v) in self.pre_map_cvars { a.push(format!("+{k}")); a.push((*v).into()); @@ -338,6 +343,8 @@ mod tests { let expected: Vec = [ "-dedicated", "-insecure", + "-port", + "24015", "+game_type", "1", "+game_mode",