v1.2.1: fixed a crash with magical fire rooms
This commit is contained in:
parent
2827ae4983
commit
d323b95917
|
@ -203,7 +203,7 @@ public class MagicalFireRoom extends SpecialRoom {
|
||||||
|| cur[cell-Dungeon.level.width()] > 0
|
|| cur[cell-Dungeon.level.width()] > 0
|
||||||
|| cur[cell+Dungeon.level.width()] > 0) {
|
|| cur[cell+Dungeon.level.width()] > 0) {
|
||||||
//spread fire to nearby flammable cells
|
//spread fire to nearby flammable cells
|
||||||
if (Dungeon.level.flamable[cell] && (fire == null || fire.cur[cell] == 0)){
|
if (Dungeon.level.flamable[cell] && (fire == null || fire.volume == 0 || fire.cur[cell] == 0)){
|
||||||
GameScene.add(Blob.seed(cell, 4, Fire.class));
|
GameScene.add(Blob.seed(cell, 4, Fire.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user