All pastes #29137 Raw Edit

cavehippo

public text v1 · immutable
#29137 ·published 2005-11-18 18:07 UTC
rendered paste body
Index: server/c_object.c
===================================================================
RCS file: /cvsroot/crossfire/crossfire/server/c_object.c,v
retrieving revision 1.74
diff -C5 -r1.74 c_object.c
*** server/c_object.c   16 Nov 2005 08:16:08 -0000      1.74
--- server/c_object.c   18 Nov 2005 18:06:55 -0000
***************
*** 1035,1045 ****

      if (tmp==NULL) {
        new_draw_info(NDI_UNIQUE, 0,op,"You don't have anything to drop.");
        return;
      }
!     if (QUERY_FLAG(tmp, FLAG_INV_LOCKED)) {
        new_draw_info(NDI_UNIQUE, 0,op,"This item is locked");
        return;
      }
      if (QUERY_FLAG(tmp, FLAG_NO_DROP)) {
  #if 0
--- 1035,1046 ----

      if (tmp==NULL) {
        new_draw_info(NDI_UNIQUE, 0,op,"You don't have anything to drop.");
        return;
      }
!     /* Locked items can't be dropped, unless we 'drop' them into a container*/
!     if (QUERY_FLAG(tmp, FLAG_INV_LOCKED) && !op->container) {
        new_draw_info(NDI_UNIQUE, 0,op,"This item is locked");
        return;
      }
      if (QUERY_FLAG(tmp, FLAG_NO_DROP)) {
  #if 0