… | |
… | |
76 | { /* same key both doors */ |
76 | { /* same key both doors */ |
77 | tmp->set_speed (0.1); |
77 | tmp->set_speed (0.1); |
78 | tmp->speed_left = -0.2; |
78 | tmp->speed_left = -0.2; |
79 | } |
79 | } |
80 | } |
80 | } |
|
|
81 | |
81 | if (op->other_arch) |
82 | if (op->other_arch) |
82 | { |
83 | { |
83 | tmp = arch_to_object (op->other_arch); |
84 | tmp = arch_to_object (op->other_arch); |
84 | tmp->x = op->x; |
85 | tmp->x = op->x; |
85 | tmp->y = op->y; |
86 | tmp->y = op->y; |
… | |
… | |
227 | if (--op->stats.food > 0) |
228 | if (--op->stats.food > 0) |
228 | return; |
229 | return; |
229 | |
230 | |
230 | CLEAR_FLAG (op, FLAG_APPLIED); |
231 | CLEAR_FLAG (op, FLAG_APPLIED); |
231 | |
232 | |
232 | if (op->env != NULL) |
233 | if (op->env) |
233 | { |
234 | { |
234 | change_abil (op->env, op); |
235 | change_abil (op->env, op); |
235 | op->env->update_stats (); |
236 | op->env->update_stats (); |
236 | } |
237 | } |
237 | |
238 | |
… | |
… | |
660 | * here too. -b.t. |
661 | * here too. -b.t. |
661 | * |
662 | * |
662 | * Returns a pointer to the stopped object (which will have been removed |
663 | * Returns a pointer to the stopped object (which will have been removed |
663 | * from maps or inventories), or NULL if was destroyed. |
664 | * from maps or inventories), or NULL if was destroyed. |
664 | */ |
665 | */ |
665 | |
|
|
666 | static void |
666 | static void |
667 | stop_arrow (object *op) |
667 | stop_arrow (object *op) |
668 | { |
668 | { |
669 | if (INVOKE_OBJECT (STOP, op)) |
669 | if (INVOKE_OBJECT (STOP, op)) |
670 | return; |
670 | return; |