v0.3.0d: corrected an error in sign placement

This commit is contained in:
Evan Debenham
2015-06-12 00:07:47 -04:00
committed by Evan Debenham
parent d416d9f6ef
commit 88a55f3336

View File

@@ -172,7 +172,7 @@ public abstract class RegularLevel extends Level {
protected void placeSign(){
while (true) {
int pos = roomEntrance.random();
if (pos != entrance || traps.get(pos) == null) {
if (pos != entrance && traps.get(pos) == null) {
map[pos] = Terrain.SIGN;
break;
}