v3.3.0: fixed toxic gas rooms marking their entrance as char placeable
This commit is contained in:
@@ -111,6 +111,9 @@ public class ToxicGasRoom extends SpecialRoom {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlaceCharacter(Point p, Level l) {
|
public boolean canPlaceCharacter(Point p, Level l) {
|
||||||
|
if (!super.canPlaceCharacter(p, l)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Blob gas = l.blobs.get(ToxicGas.class);
|
Blob gas = l.blobs.get(ToxicGas.class);
|
||||||
return gas == null || gas.volume == 0 || gas.cur[l.pointToCell(p)] == 0;
|
return gas == null || gas.volume == 0 || gas.cur[l.pointToCell(p)] == 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user