summaryrefslogtreecommitdiff
path: root/dungeon/src/map.rs
diff options
context:
space:
mode:
authoralf9310 <alf9310@rit.edu>2025-10-17 10:30:42 -0400
committeralf9310 <alf9310@rit.edu>2025-10-17 10:30:42 -0400
commit0915e49c033fcb364feb307e2998a24833f4ae0f (patch)
tree9713dccb4920a1645547a3ab2cb7cc31b946c4e2 /dungeon/src/map.rs
parentProposal summary and use cases complete (diff)
parentdungeon: make const_pos! not require name param (diff)
downloadDungeonCrawl-0915e49c033fcb364feb307e2998a24833f4ae0f.tar.gz
DungeonCrawl-0915e49c033fcb364feb307e2998a24833f4ae0f.tar.bz2
DungeonCrawl-0915e49c033fcb364feb307e2998a24833f4ae0f.zip
Merge branch 'main' of https://git.gccis.rit.edu/psr2251/project/DungeonCrawl
Diffstat (limited to 'dungeon/src/map.rs')
-rw-r--r--dungeon/src/map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs
index f5c1184..97bb36c 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -196,7 +196,7 @@ impl Floor {
impl Default for Floor {
/// Returns a floor with a single set of walls on the map border
fn default() -> Self {
- const_pos!(PLAYER_START, 1, 1);
+ let player_start = const_pos!(1, 1);
let mut tiles = Box::new([Tile::Air; TILE_COUNT]);
let seed = 0u64;
@@ -208,7 +208,7 @@ impl Default for Floor {
Self {
tiles,
- player_start: PLAYER_START,
+ player_start,
seed,
}
}