 [Bug] Mppurge doesn't separate objects when removing them.
  [Bug] Mppurge doesn't separate objects when removing them.
 
 Pages:<< prev   1  next >>
 #1 Jan 2, 2009 1:05 pm
   #1 Jan 2, 2009 1:05 pm
     
   InfiniteAxis
  InfiniteAxisOff the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
  Bug: Mppurge command doesn't separate objects when deleting them.
Danger: Low, Will purge all of a type of item instead of just a single item.
Found by: Samras
Fixed by: Kayle
---
mud_comm.c
void do_mppurge( CHAR_DATA* ch, const char* argument)
Find:
Change to:
  
  
 
Danger: Low, Will purge all of a type of item instead of just a single item.
Found by: Samras
Fixed by: Kayle
---
mud_comm.c
void do_mppurge( CHAR_DATA* ch, const char* argument)
Find:
      while( ch->in_room->first_content )
         extract_obj( ch->in_room->first_content );
      return;
   }
   if( ( victim = get_char_room( ch, arg ) ) == NULL )
   {
      if( ( obj = get_obj_here( ch, arg ) ) != NULL )
         extract_obj( obj );
      else
         progbug( "Mppurge - Bad argument", ch );
      return;
   }
Change to:
      while( ch->in_room->first_content )
         extract_obj( ch->in_room->first_content );
      return;
   }
   if( ( victim = get_char_room( ch, arg ) ) == NULL )
   {
      if( ( obj = get_obj_here( ch, arg ) ) != NULL )
      {
         separate_obj( obj );
         extract_obj( obj );
      }
      else
         progbug( "Mppurge - Bad argument", ch );
      return;
   }
 Pages:<< prev   1  next >>
 
       
       Top Posters
      Top Posters
      Top Uploaders
      Top Uploaders
      Users Online
      Users Online
      Stats
      Stats
     
