Fix bug in fire damage calculation
This commit is contained in:
parent
94b5e84ee1
commit
d4861e906f
|
@ -14963,8 +14963,7 @@ int real_takedamage(object_t *o, int howmuch, int damtype, int wantannounce, lif
|
|||
f = hasflag(o->flags, F_EQUIPPED);
|
||||
if (f) {
|
||||
// no damage from equipped _weapons_
|
||||
if ((f->val[0] != BP_WEAPON) || (f->val[0] != BP_SECWEAPON)) {
|
||||
} else {
|
||||
if ((f->val[0] != BP_WEAPON) && (f->val[0] != BP_SECWEAPON)) {
|
||||
// equipped clothes/armour? full damage.
|
||||
lfdam = howmuch;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue