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 // Parking data in the actdev maps is nonexistent, so many people have convoluted walking
// routes just to fetch their car. Just disable parking entirely. // routes just to fetch their car. Just disable parking entirely.
flags.sim_flags.opts.infinite_parking = true; flags.sim_flags.opts.infinite_parking = true;
mode = Some(sandbox::GameplayMode::Actdev( let scenario = if args.optional("--actdev_scenario") == Some("go_active".to_string()) {
name, "go_active".to_string()
"base".to_string(), } else {
false, "base".to_string()
)); };
mode = Some(sandbox::GameplayMode::Actdev(name, scenario, false));
} }
args.done(); args.done();