diff options
author | Guillaume Pasquet <guillaume.pasquet@eggplant.io> | 2019-11-11 11:27:06 +0100 |
---|---|---|
committer | Guillaume Pasquet <guillaume.pasquet@eggplant.io> | 2019-11-11 11:27:06 +0100 |
commit | c46dd9c0c14c211801f9ead3e7da735b4dde4711 (patch) | |
tree | 7e8787145bca1596b2a5703bf0b59b1ffa548e94 | |
parent | 053b8b29b126af2a624bf8c66e6f0487aa07bd17 (diff) |
Basic fix...
-rw-r--r-- | src/world.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/world.rs b/src/world.rs index 60ca096..fe54a38 100644 --- a/src/world.rs +++ b/src/world.rs @@ -271,12 +271,12 @@ impl GameWorld for World { room.tile(&mut grid).unwrap();
}
- for room in &self.world {
- // Find the nearest room.
- let distances = self.room_distances(room.center);
- let nearest_room = &self.world[distances[1].0];
- let mut corridor_start: (usize, usize);
- }
+ // for room in &self.world {
+ // // Find the nearest room.
+ // let distances = self.room_distances(room.center);
+ // let nearest_room = &self.world[distances[1].0];
+ // let mut corridor_start: (usize, usize);
+ // }
grid
}
|