[Bug] Mppurge doesn't separate objects when removing them.
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Jan 2, 2009 1:05 pm
Off the Edge of the Map
GroupAdministrators
Posts1,200
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 >>