v0.9.0a: fixed burning webs destroying special ground instead of deco ground

This commit is contained in:
Evan Debenham 2020-10-07 18:17:05 -04:00
parent 6127cacf5e
commit d1aa0495de

View File

@ -684,7 +684,7 @@ public abstract class Level implements Bundlable {
public void destroy( int pos ) { public void destroy( int pos ) {
//if raw tile type is flammable or empty //if raw tile type is flammable or empty
int terr = map[pos]; int terr = map[pos];
if (terr == Terrain.EMPTY || terr == Terrain.EMPTY_SP if (terr == Terrain.EMPTY || terr == Terrain.EMPTY_DECO
|| (Terrain.flags[map[pos]] & Terrain.FLAMABLE) != 0) { || (Terrain.flags[map[pos]] & Terrain.FLAMABLE) != 0) {
set(pos, Terrain.EMBERS); set(pos, Terrain.EMBERS);
} }