mapgen runstate

This commit is contained in:
Llywelwyn 2023-09-24 22:20:49 +01:00
parent 7f02a5a30f
commit a2fb893f49
7 changed files with 73 additions and 23 deletions

View file

@ -749,7 +749,7 @@ pub fn player_input(gs: &mut State, ctx: &mut App, on_overmap: bool) -> RunState
return RunState::SaveGame;
}
KeyCode::X => {
let bounds = get_screen_bounds(&gs.ecs);
let bounds = get_screen_bounds(&gs.ecs, false);
let ppos = gs.ecs.fetch::<Point>();
let (x, y) = (
ppos.x + bounds.x_offset - bounds.min_x,