… | |
… | |
776 | { |
776 | { |
777 | for (object *op = inv; op; op = op->below) |
777 | for (object *op = inv; op; op = op->below) |
778 | op->deactivate_recursive (); |
778 | op->deactivate_recursive (); |
779 | |
779 | |
780 | deactivate (); |
780 | deactivate (); |
|
|
781 | } |
|
|
782 | |
|
|
783 | void |
|
|
784 | object::set_flag_inv (int flag, int value) |
|
|
785 | { |
|
|
786 | for (object *op = inv; op; op = op->below) |
|
|
787 | { |
|
|
788 | op->flag [flag] = value; |
|
|
789 | op->set_flag_inv (flag, value); |
|
|
790 | } |
781 | } |
791 | } |
782 | |
792 | |
783 | /* |
793 | /* |
784 | * Remove and free all objects in the inventory of the given object. |
794 | * Remove and free all objects in the inventory of the given object. |
785 | * object.c ? |
795 | * object.c ? |