From 2b773032b219de7d9e15e1b0d5e1aaaab2c649c7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 27 Apr 2017 14:10:36 -0400 Subject: [PATCH] v0.6.0: fixed bugs with random tile grabbing for rooms --- .../shatteredpixeldungeon/levels/rooms/Room.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/Room.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/Room.java index ca19e8b9b..0e4ce5720 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/Room.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/Room.java @@ -139,8 +139,8 @@ public class Room extends Rect implements Graph.Node, Bundlable { } public Point random( int m ) { - return new Point( Random.Int( left + m, right - m ), - Random.Int( top + m, bottom - m )); + return new Point( Random.IntRange( left + m, right - m ), + Random.IntRange( top + m, bottom - m )); } public boolean inside( Point p ) {