diff --git a/src/movement/caching.rs b/src/movement/caching.rs index c7de078..d025f55 100644 --- a/src/movement/caching.rs +++ b/src/movement/caching.rs @@ -63,8 +63,8 @@ pub fn generate_storage_path(room: &Room, room_cache: &mut CachedRoom) -> Compre let mut matrix = LocalCostMatrix::new(); let terrain = game::map::get_room_terrain(room.name()).unwrap(); - for x in 0..50 { - for y in 0..50 { + for x in 0..=49 { + for y in 0..=49 { let pos = RoomXY::new(RoomCoordinate::new(x).unwrap(), RoomCoordinate::new(y).unwrap()); let terrain = terrain.get(x, y); @@ -75,9 +75,9 @@ pub fn generate_storage_path(room: &Room, room_cache: &mut CachedRoom) -> Compre } // Add a border around the room. - if x == 0 || y == 0 || x == 49 || y == 49 { - matrix.set(pos, 255); - } + //if x == 0 || y == 0 || x == 49 || y == 49 { + // matrix.set(pos, 255); + //} } } diff --git a/src/room/spawning/creep_sizing.rs b/src/room/spawning/creep_sizing.rs index 7c9ccfb..e562516 100644 --- a/src/room/spawning/creep_sizing.rs +++ b/src/room/spawning/creep_sizing.rs @@ -146,6 +146,11 @@ pub fn hauler_body(room: &Room, cache: &CachedRoom, scan_check: bool) -> Vec