v0.6.0: fixed bugs with random tile grabbing for rooms

This commit is contained in:
Evan Debenham 2017-04-27 14:10:36 -04:00
parent 8a9c5746b5
commit 2b773032b2

View File

@ -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 ) {