mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-29 04:35:51 +03:00
dont lose logs in editor
This commit is contained in:
parent
6e0f58f4c6
commit
c1427a044c
@ -54,3 +54,7 @@ SidewalkSpot
|
|||||||
Awkward to turn neighborhoods into buildings/streets; we kind of need the
|
Awkward to turn neighborhoods into buildings/streets; we kind of need the
|
||||||
quadtree and stuff for that, which is the Renderable layer right now.
|
quadtree and stuff for that, which is the Renderable layer right now.
|
||||||
Originally there was a separate geometry layer, probably for stuff like this.
|
Originally there was a separate geometry layer, probably for stuff like this.
|
||||||
|
|
||||||
|
## Scores
|
||||||
|
|
||||||
|
Alright, getting much closer to this being a game! Let's return to the idea of utility functions for agents.
|
||||||
|
@ -73,6 +73,9 @@ impl UIWrapper {
|
|||||||
rng_seed: Option<u8>,
|
rng_seed: Option<u8>,
|
||||||
kml: Option<String>,
|
kml: Option<String>,
|
||||||
) -> UIWrapper {
|
) -> UIWrapper {
|
||||||
|
// Do this first, so anything logged by sim::load isn't lost.
|
||||||
|
let logs = DisplayLogs::new();
|
||||||
|
|
||||||
flame::start("setup");
|
flame::start("setup");
|
||||||
let (map, edits, control_map, sim) = sim::load(
|
let (map, edits, control_map, sim) = sim::load(
|
||||||
load,
|
load,
|
||||||
@ -126,7 +129,7 @@ impl UIWrapper {
|
|||||||
turn_cycler: TurnCyclerState::new(),
|
turn_cycler: TurnCyclerState::new(),
|
||||||
draw_neighborhoods: DrawNeighborhoodState::new(),
|
draw_neighborhoods: DrawNeighborhoodState::new(),
|
||||||
scenarios: ScenarioManager::new(),
|
scenarios: ScenarioManager::new(),
|
||||||
logs: DisplayLogs::new(),
|
logs,
|
||||||
|
|
||||||
active_plugin: None,
|
active_plugin: None,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user