finishes decoupling map from camera
This commit is contained in:
parent
2ecfd25d95
commit
7f0465da73
13 changed files with 110 additions and 254 deletions
|
|
@ -199,7 +199,7 @@ pub fn load_game(ecs: &mut World) {
|
|||
for (e, h) in (&entities, &helper).join() {
|
||||
let mut worldmap = ecs.write_resource::<super::map::Map>();
|
||||
*worldmap = h.map.clone();
|
||||
worldmap.tile_content = vec![Vec::new(); super::map::MAPCOUNT];
|
||||
worldmap.tile_content = vec![Vec::new(); (worldmap.width * worldmap.height) as usize];
|
||||
deleteme = Some(e);
|
||||
crate::gamelog::restore_log(&mut h.log.clone());
|
||||
crate::gamelog::load_events(h.events.clone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue