ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_misc.C
(Generate patch)

Comparing deliantra/server/server/c_misc.C (file contents):
Revision 1.13 by root, Mon Oct 2 00:22:01 2006 UTC vs.
Revision 1.15 by pippijn, Sat Dec 9 17:28:37 2006 UTC

223{ 223{
224 char namebuf[MAX_BUF]; 224 char namebuf[MAX_BUF];
225 int login_order; 225 int login_order;
226} chars_names; 226} chars_names;
227 227
228/*local functon for qsort comparison*/
229static int
230name_cmp (const chars_names * c1, const chars_names * c2)
231{
232 return strcasecmp (c1->namebuf, c2->namebuf);
233}
234
235int 228int
236command_afk (object *op, char *params) 229command_afk (object *op, char *params)
237{ 230{
238 if QUERY_FLAG 231 if QUERY_FLAG
239 (op, FLAG_AFK) 232 (op, FLAG_AFK)
453int 446int
454command_dumpbelow (object *op, char *params) 447command_dumpbelow (object *op, char *params)
455{ 448{
456 if (op && op->below) 449 if (op && op->below)
457 { 450 {
458 dump_object (op->below); 451 char *dump = dump_object (op->below);
459 new_draw_info (NDI_UNIQUE, 0, op, errmsg); 452 new_draw_info (NDI_UNIQUE, 0, op, dump);
453 free (dump);
460 /* Let's push that item on the dm's stack */ 454 /* Let's push that item on the dm's stack */
461 dm_stack_push (op->contr, op->below->count); 455 dm_stack_push (op->contr, op->below->count);
462 } 456 }
463 return 0; 457 return 0;
464} 458}
465 459
466int 460int
467command_dumpallobjects (object *op, char *params)
468{
469 dump_all_objects ();
470 return 0;
471}
472
473int
474command_dumpfriendlyobjects (object *op, char *params) 461command_dumpfriendlyobjects (object *op, char *params)
475{ 462{
476 dump_friendly_objects (); 463 dump_friendly_objects ();
477 return 0;
478}
479
480int
481command_dumpallarchetypes (object *op, char *params)
482{
483 dump_all_archetypes ();
484 return 0; 464 return 0;
485} 465}
486 466
487int 467int
488command_dumpmap (object *op, char *params) 468command_dumpmap (object *op, char *params)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines