… | |
… | |
751 | /* Decrease speed BEFORE calling process_object. Otherwise, an |
751 | /* Decrease speed BEFORE calling process_object. Otherwise, an |
752 | * infinite loop occurs, with process_object calling move_monster, |
752 | * infinite loop occurs, with process_object calling move_monster, |
753 | * which then gets here again. By decreasing the speed before |
753 | * which then gets here again. By decreasing the speed before |
754 | * we call process_object, the 'if' statement above will fail. |
754 | * we call process_object, the 'if' statement above will fail. |
755 | */ |
755 | */ |
756 | op->speed_left--; |
756 | --op->speed_left; |
757 | process_object (op); |
757 | process_object (op); |
758 | |
758 | |
759 | if (op->destroyed () || hitter->destroyed () || abort_attack (op, hitter, simple_attack)) |
759 | if (op->destroyed () || hitter->destroyed () || abort_attack (op, hitter, simple_attack)) |
760 | goto error; |
760 | goto error; |
761 | } |
761 | } |