Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Poison core dump bug (patch)




 Here is a patch that will fix the problem with crossfire core dumping
when poisoning ends.

 Note: In general, I will not put out intermediate patches, but this problem
is serious/common enough that a fix is needed, and not enough has changed
to put out a new version.


*** 1.17	1994/04/16 02:22:42
--- time.c	1994/04/20 01:40:13
***************
*** 152,163 ****
      /* need to remove the object before fix_player is called, else fix_player
       * will not do anything.
       */
-     remove_ob(op);
      if(op->env->type==PLAYER) {
!       SET_FLAG(op, FLAG_APPLIED);
        fix_player(op->env);
        draw_info(op->env,"You feel much better now.");
      }
      free_object(op);
      return;
    }
--- 152,163 ----
      /* need to remove the object before fix_player is called, else fix_player
       * will not do anything.
       */
      if(op->env->type==PLAYER) {
!       CLEAR_FLAG(op, FLAG_APPLIED);
        fix_player(op->env);
        draw_info(op->env,"You feel much better now.");
      }
+     remove_ob(op);
      free_object(op);
      return;
    }

<EOF>