v0.7.0: fixed further bugs with teleportation and locked rooms

This commit is contained in:
Evan Debenham 2018-06-30 19:03:03 -04:00
parent f2145237ed
commit 4de7f3752e

View File

@ -147,7 +147,7 @@ public class ScrollOfTeleportation extends Scroll {
if (r instanceof SpecialRoom){
int terr;
boolean locked = false;
for (Point p : r.charPlaceablePoints(level)){
for (Point p : r.getPoints()){
terr = level.map[level.pointToCell(p)];
if (terr == Terrain.LOCKED_DOOR || terr == Terrain.BARRICADE){
locked = true;