… | |
… | |
457 | { |
457 | { |
458 | dump_object (op->below); |
458 | dump_object (op->below); |
459 | new_draw_info (NDI_UNIQUE, 0, op, errmsg); |
459 | new_draw_info (NDI_UNIQUE, 0, op, errmsg); |
460 | /* Let's push that item on the dm's stack */ |
460 | /* Let's push that item on the dm's stack */ |
461 | dm_stack_push (op->contr, op->below->count); |
461 | dm_stack_push (op->contr, op->below->count); |
462 | } |
|
|
463 | return 0; |
|
|
464 | } |
|
|
465 | |
|
|
466 | int |
|
|
467 | command_wizpass (object *op, char *params) |
|
|
468 | { |
|
|
469 | int i; |
|
|
470 | |
|
|
471 | if (!op) |
|
|
472 | return 0; |
|
|
473 | |
|
|
474 | if (!params) |
|
|
475 | i = (QUERY_FLAG (op, FLAG_WIZPASS)) ? 0 : 1; |
|
|
476 | else |
|
|
477 | i = onoff_value (params); |
|
|
478 | |
|
|
479 | if (i) |
|
|
480 | { |
|
|
481 | new_draw_info (NDI_UNIQUE, 0, op, "You will now walk through walls.\n"); |
|
|
482 | SET_FLAG (op, FLAG_WIZPASS); |
|
|
483 | } |
|
|
484 | else |
|
|
485 | { |
|
|
486 | new_draw_info (NDI_UNIQUE, 0, op, "You will now be stopped by walls.\n"); |
|
|
487 | CLEAR_FLAG (op, FLAG_WIZPASS); |
|
|
488 | } |
462 | } |
489 | return 0; |
463 | return 0; |
490 | } |
464 | } |
491 | |
465 | |
492 | int |
466 | int |