spinners and fmt
This commit is contained in:
@@ -326,6 +326,12 @@ impl EditorState {
|
||||
let mut world = self.world.deep_clone();
|
||||
// Start the playtest on the board open in the editor, not world.start.
|
||||
world.start = self.board_name.clone();
|
||||
// Editor-stamped machines (spinners, pushers) are plain terrain cells; expand
|
||||
// them into their scripted objects so they actually run, just as the map loader
|
||||
// does on disk-loaded worlds.
|
||||
for board in world.boards.values() {
|
||||
board.borrow_mut().expand_builtin_archetypes();
|
||||
}
|
||||
let mut game = GameState::from_world(world);
|
||||
game.log(LogLine::raw("[esc] to return to the editor"));
|
||||
game.run_init();
|
||||
|
||||
Reference in New Issue
Block a user