v0.3.0d: corrected an error in sign placement
This commit is contained in:
committed by
Evan Debenham
parent
d416d9f6ef
commit
88a55f3336
@@ -172,7 +172,7 @@ public abstract class RegularLevel extends Level {
|
|||||||
protected void placeSign(){
|
protected void placeSign(){
|
||||||
while (true) {
|
while (true) {
|
||||||
int pos = roomEntrance.random();
|
int pos = roomEntrance.random();
|
||||||
if (pos != entrance || traps.get(pos) == null) {
|
if (pos != entrance && traps.get(pos) == null) {
|
||||||
map[pos] = Terrain.SIGN;
|
map[pos] = Terrain.SIGN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user