Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: slaying and immune
- To: crossfire (at) ifi.uio.no
- Subject: CF: slaying and immune
- From: KAWAMOTO Yosihisa <>
- Date: Fri, 17 May 1996 21:53:56 +0900
- Sender: owner-crossfire
Hello. There is a bug report in Crossfire JP mailing list.
In server/attack.c, there is related conditions about slaying and
immune. But there are no relations between them, the bug
reporter said. Is this a bug?
if (hitter->slaying) {....}
else if (op->immune&type){...}
^^^^
This is a patch for this.
--
iKAWAMOTO Yosihisa!
*** /server/attack.c.old Fri May 10 23:52:29 1996
--- /server/attack.c Tue May 14 00:34:43 1996
***************
*** 481,487 ****
dam *= 3; /* Ouch 8) */
}
}
! else if (op->immune&type)
{
/* newtype contains what creature is not immune to from this attack */
int newtype = type & ~op->immune;
--- 481,487 ----
dam *= 3; /* Ouch 8) */
}
}
! if (op->immune&type)
{
/* newtype contains what creature is not immune to from this attack */
int newtype = type & ~op->immune;