v0.7.0: fixed further bugs with teleportation and locked rooms
This commit is contained in:
parent
f2145237ed
commit
4de7f3752e
|
@ -147,7 +147,7 @@ public class ScrollOfTeleportation extends Scroll {
|
||||||
if (r instanceof SpecialRoom){
|
if (r instanceof SpecialRoom){
|
||||||
int terr;
|
int terr;
|
||||||
boolean locked = false;
|
boolean locked = false;
|
||||||
for (Point p : r.charPlaceablePoints(level)){
|
for (Point p : r.getPoints()){
|
||||||
terr = level.map[level.pointToCell(p)];
|
terr = level.map[level.pointToCell(p)];
|
||||||
if (terr == Terrain.LOCKED_DOOR || terr == Terrain.BARRICADE){
|
if (terr == Terrain.LOCKED_DOOR || terr == Terrain.BARRICADE){
|
||||||
locked = true;
|
locked = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user