From: Holger Schemel Date: Mon, 17 Sep 2018 17:51:54 +0000 (+0200) Subject: fixed bug with dragon fire destroying indestructible steel letter walls X-Git-Tag: 4.1.1.0~29 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=62b17f905b02a37a044d8aa85ca1afaf95ff360b;p=rocksndiamonds.git 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. --- 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)