[CF-Devel] patch for crashing-bug in Hall of Quests

Peter Mardahl peterm at tesla.EECS.Berkeley.EDU
Mon Oct 23 13:16:22 CDT 2000


I dunno how the crashing-bug in the Hall of Quests
escaped my testing before now, but at any rate
here (and in the CVS version) is the patch for it:

Index: time.c
===================================================================
RCS file: /home/cvs/CVS/crossfire/server/time.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -c -r1.11 -r1.12
*** time.c	2000/10/16 19:19:31	1.11
--- time.c	2000/10/23 18:13:56	1.12
***************
*** 1,6 ****
  /*
   * static char *rcsid_time_c =
!  *    "$Id: time.c,v 1.11 2000/10/16 19:19:31 peterm Exp $";
   */
  
  /*
--- 1,6 ----
  /*
   * static char *rcsid_time_c =
!  *    "$Id: time.c,v 1.12 2000/10/23 18:13:56 peterm Exp $";
   */
  
  /*
***************
*** 362,372 ****
  		object *tmp2;
  		if(op->stats.hp) {
  		  for(tmp2= tmp->inv;tmp2;tmp2=tmp2->below) {
! 			 if(!strcmp(op->slaying,tmp->name)) detected=1;
! 			 if(tmp2->type==FORCE && !strcmp(tmp2->slaying,op->slaying)) detected=1;
  		  }
  		}
! 	if (!strcmp(op->slaying,tmp->name)) {
  	  detected = 1;
  	}
  	else if (tmp->type==SPECIAL_KEY && tmp->slaying==op->slaying)
--- 362,372 ----
  		object *tmp2;
  		if(op->stats.hp) {
  		  for(tmp2= tmp->inv;tmp2;tmp2=tmp2->below) {
! 			 if(op->slaying && !strcmp(op->slaying,tmp->name)) detected=1;
! 			 if(tmp2->type==FORCE &&tmp2->slaying && !strcmp(tmp2->slaying,op->slaying)) detected=1;
  		  }
  		}
! 	if (op->slaying && !strcmp(op->slaying,tmp->name)) {
  	  detected = 1;
  	}
  	else if (tmp->type==SPECIAL_KEY && tmp->slaying==op->slaying)


    
    


More information about the crossfire mailing list