From 6339f5a577aa886be040b24d87ce28ccf3e56a0c Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Wed, 29 Dec 2021 11:46:57 +0000 Subject: [PATCH] Fixed typo in random dungeon code --- Data/Scripts/012_Overworld/008_Overworld_RandomDungeons.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Data/Scripts/012_Overworld/008_Overworld_RandomDungeons.rb b/Data/Scripts/012_Overworld/008_Overworld_RandomDungeons.rb index ef71d4860..dcbfd4088 100644 --- a/Data/Scripts/012_Overworld/008_Overworld_RandomDungeons.rb +++ b/Data/Scripts/012_Overworld/008_Overworld_RandomDungeons.rb @@ -116,8 +116,8 @@ module RandomDungeonGenerator # Makes all tiles in a particular area corridor tiles. def paint_corridor(tile, x, y, width, height) - timesheight.times do |j| - timeswidth.times do |i| + height.times do |j| + width.times do |i| tile[((y + j) * CELL_WIDTH) + (x + i)] = DungeonTile::CORRIDOR end end