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
|
||||
public boolean canPlaceCharacter(Point p, Level l) {
|
||||
if (!super.canPlaceCharacter(p, l)) {
|
||||
return false;
|
||||
}
|
||||
Blob gas = l.blobs.get(ToxicGas.class);
|
||||
return gas == null || gas.volume == 0 || gas.cur[l.pointToCell(p)] == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user