From 62b17f905b02a37a044d8aa85ca1afaf95ff360b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 17 Sep 2018 19:51:54 +0200 Subject: [PATCH] fixed bug with dragon fire destroying indestructible steel letter walls Before this change, steel letter walls could be destroyed by dragon fire, although they are set to be indestructible. This change makes sure that indestructible elements cannot be destroyed by dragon fire (with the exception of the "acid" element, which is to be discussed, but would break level 014 of "rnd_paul_e_collins_iii" if changed). As far as this was tested agains existing solution tapes, this change does not seem to break any existing levels or tapes. --- src/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.c b/src/init.c index 5aa38b58..3a2f9f31 100644 --- a/src/init.c +++ b/src/init.c @@ -4570,8 +4570,8 @@ void InitElementPropertiesEngine(int engine_version) if (IS_HISTORIC_SOLID(i) || i == EL_EXPLOSION) SET_PROPERTY(i, EP_DRAGONFIRE_PROOF, TRUE); else - SET_PROPERTY(i, EP_DRAGONFIRE_PROOF, (IS_CUSTOM_ELEMENT(i) && - IS_INDESTRUCTIBLE(i))); + SET_PROPERTY(i, EP_DRAGONFIRE_PROOF, (IS_INDESTRUCTIBLE(i) && + i != EL_ACID)); /* ---------- EXPLOSION_PROOF ------------------------------------------ */ if (i == EL_FLAMES) -- 2.34.1