Allow specifying go active scenario when launching actdev. cyipt/actdev#150

This commit is contained in:
Dustin Carlino 2021-03-19 16:25:36 -07:00
parent d7b7c2d7cd
commit 2bebd8a2c9

View File

@ -107,11 +107,12 @@ pub fn main() {
// Parking data in the actdev maps is nonexistent, so many people have convoluted walking
// routes just to fetch their car. Just disable parking entirely.
flags.sim_flags.opts.infinite_parking = true;
mode = Some(sandbox::GameplayMode::Actdev(
name,
"base".to_string(),
false,
));
let scenario = if args.optional("--actdev_scenario") == Some("go_active".to_string()) {
"go_active".to_string()
} else {
"base".to_string()
};
mode = Some(sandbox::GameplayMode::Actdev(name, scenario, false));
}
args.done();