… | |
… | |
453 | int |
453 | int |
454 | command_dumpbelow (object *op, char *params) |
454 | command_dumpbelow (object *op, char *params) |
455 | { |
455 | { |
456 | if (op && op->below) |
456 | if (op && op->below) |
457 | { |
457 | { |
458 | dump_object (op->below); |
458 | char *dump = dump_object (op->below); |
459 | new_draw_info (NDI_UNIQUE, 0, op, errmsg); |
459 | new_draw_info (NDI_UNIQUE, 0, op, dump); |
|
|
460 | free (dump); |
460 | /* Let's push that item on the dm's stack */ |
461 | /* Let's push that item on the dm's stack */ |
461 | dm_stack_push (op->contr, op->below->count); |
462 | dm_stack_push (op->contr, op->below->count); |
462 | } |
463 | } |
463 | return 0; |
464 | return 0; |
464 | } |
465 | } |
465 | |
466 | |
466 | int |
467 | int |
467 | command_dumpallobjects (object *op, char *params) |
|
|
468 | { |
|
|
469 | dump_all_objects (); |
|
|
470 | return 0; |
|
|
471 | } |
|
|
472 | |
|
|
473 | int |
|
|
474 | command_dumpfriendlyobjects (object *op, char *params) |
468 | command_dumpfriendlyobjects (object *op, char *params) |
475 | { |
469 | { |
476 | dump_friendly_objects (); |
470 | dump_friendly_objects (); |
477 | return 0; |
|
|
478 | } |
|
|
479 | |
|
|
480 | int |
|
|
481 | command_dumpallarchetypes (object *op, char *params) |
|
|
482 | { |
|
|
483 | dump_all_archetypes (); |
|
|
484 | return 0; |
471 | return 0; |
485 | } |
472 | } |
486 | |
473 | |
487 | int |
474 | int |
488 | command_dumpmap (object *op, char *params) |
475 | command_dumpmap (object *op, char *params) |