mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-25 23:43:25 +03:00
Allow specifying go active scenario when launching actdev. cyipt/actdev#150
This commit is contained in:
parent
d7b7c2d7cd
commit
2bebd8a2c9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user