From 4cdfab35e450905eeafa79d06c451d432c201dd8 Mon Sep 17 00:00:00 2001 From: Code-Apprentice Date: Tue, 1 Aug 2023 22:06:34 -0600 Subject: [PATCH] Use SCREEN_HEIGHT for max y values --- MoreInterestingDungeons/traits/src/map_builder/empty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MoreInterestingDungeons/traits/src/map_builder/empty.rs b/MoreInterestingDungeons/traits/src/map_builder/empty.rs index 47f9b80..f863faf 100644 --- a/MoreInterestingDungeons/traits/src/map_builder/empty.rs +++ b/MoreInterestingDungeons/traits/src/map_builder/empty.rs @@ -19,10 +19,10 @@ impl MapArchitect for EmptyArchitect {//(3) mb.monster_spawns.push( Point::new( rng.range(1, SCREEN_WIDTH), - rng.range(1, SCREEN_WIDTH) + rng.range(1, SCREEN_HEIGHT) ) ) } mb } -} \ No newline at end of file +}