From: "Brian Reus" <[EMAIL PROTECTED]>
Sent: Monday, 12 November 2001 11:18
> Yesterday while testing one of my code changes I got bored on my debug
port
> and placed Zeus and Hassan against each other. Will that was all ok,
except
> for when zeus killed Hassan the debug port crashed.  gdb came to the
rescue.
> In fight.c where quest code prints up (the function currently escapes me)
it
> checks to make sure IS_SET(ch->act, PLR_QUESTOR) and IS_NPC(victim) and
then
> calls ch->pcdata->blah.  That is all fine and dandy assuming ch is a not a
> NPC, so I throw an !IS_NPC(ch) check in there, and bug fixed.

    The quest code written by Vassago (Ryan Addams) had the quest stuff
accessable via ch->blaat rather than ch->pc_data->blaat (in char_data rather
than pc_data) so didn't need the NPC check.

    Most of those who added their improvements to to this code have changed
it
to be in pc_data and of those with their code posted on kyndig.com only one
was missing the NPC check.

  |\      _,,,---,,_
  /,`.-'`'    -.  ;-;;,_
 |,4-  ) )-,_..;\ (  `'-'
'---''(_/--'  `-'\_)
BluSky is often lurking at Afterlife MUD:
[EMAIL PROTECTED] * http://www.afterlife.mudservices.com
------------------> telnet://afterlife.mudservices.com:5000


Reply via email to