v0.6.0: fixed bugs with random tile grabbing for rooms
This commit is contained in:
parent
8a9c5746b5
commit
2b773032b2
|
@ -139,8 +139,8 @@ public class Room extends Rect implements Graph.Node, Bundlable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Point random( int m ) {
|
public Point random( int m ) {
|
||||||
return new Point( Random.Int( left + m, right - m ),
|
return new Point( Random.IntRange( left + m, right - m ),
|
||||||
Random.Int( top + m, bottom - m ));
|
Random.IntRange( top + m, bottom - m ));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean inside( Point p ) {
|
public boolean inside( Point p ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user