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);
|
f = hasflag(o->flags, F_EQUIPPED);
|
||||||
if (f) {
|
if (f) {
|
||||||
// no damage from equipped _weapons_
|
// no damage from equipped _weapons_
|
||||||
if ((f->val[0] != BP_WEAPON) || (f->val[0] != BP_SECWEAPON)) {
|
if ((f->val[0] != BP_WEAPON) && (f->val[0] != BP_SECWEAPON)) {
|
||||||
} else {
|
|
||||||
// equipped clothes/armour? full damage.
|
// equipped clothes/armour? full damage.
|
||||||
lfdam = howmuch;
|
lfdam = howmuch;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue