v0.7.0: bugfixes:
- runestones appearing in bookshelves rarely - crashes with new teleportation effect
This commit is contained in:
parent
2af7f9a3a2
commit
ca23637437
|
@ -134,6 +134,7 @@ public class ScrollOfTeleportation extends Scroll {
|
||||||
|
|
||||||
if (!(Dungeon.level instanceof RegularLevel)){
|
if (!(Dungeon.level instanceof RegularLevel)){
|
||||||
teleportHero( hero );
|
teleportHero( hero );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
RegularLevel level = (RegularLevel) Dungeon.level;
|
RegularLevel level = (RegularLevel) Dungeon.level;
|
||||||
|
|
|
@ -72,7 +72,7 @@ public class SecretRunestoneRoom extends SecretRoom {
|
||||||
|
|
||||||
do{
|
do{
|
||||||
dropPos = level.pointToCell(random());
|
dropPos = level.pointToCell(random());
|
||||||
} while (level.map[dropPos] != Terrain.EMPTY && level.heaps.get(dropPos) != null);
|
} while (level.map[dropPos] != Terrain.EMPTY || level.heaps.get(dropPos) != null);
|
||||||
level.drop( Generator.random(Generator.Category.STONE), dropPos);
|
level.drop( Generator.random(Generator.Category.STONE), dropPos);
|
||||||
|
|
||||||
do{
|
do{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user