… | |
… | |
2607 | if (op->env && (pl->move_type & MOVE_FLYING)) |
2607 | if (op->env && (pl->move_type & MOVE_FLYING)) |
2608 | { |
2608 | { |
2609 | /* player is flying and applying object not in inventory */ |
2609 | /* player is flying and applying object not in inventory */ |
2610 | if (!QUERY_FLAG (pl, FLAG_WIZ) && !(op->move_type & MOVE_FLYING)) |
2610 | if (!QUERY_FLAG (pl, FLAG_WIZ) && !(op->move_type & MOVE_FLYING)) |
2611 | { |
2611 | { |
2612 | op->failmsg ("But you are floating high above the ground! H<You have to stop levitating first, if you can.>"); |
2612 | pl->failmsg ("But you are floating high above the ground! H<You have to stop levitating first, if you can.>"); |
2613 | return 0; |
2613 | return 0; |
2614 | } |
2614 | } |
2615 | } |
2615 | } |
2616 | |
2616 | |
2617 | pl->contr->last_used = op; |
2617 | pl->contr->last_used = op; |
2618 | |
2618 | |
2619 | tmp = manual_apply (pl, op, aflag); |
2619 | tmp = manual_apply (pl, op, aflag); |
2620 | if (!quiet) |
2620 | if (!quiet) |
2621 | { |
2621 | { |
2622 | if (tmp == 0) |
2622 | if (tmp == 0) |
2623 | op->statusmsg (format ("I don't know how to apply the %s.", query_name (op))); |
2623 | pl->statusmsg (format ("I don't know how to apply the %s.", query_name (op))); |
2624 | else if (tmp == 2) |
2624 | else if (tmp == 2) |
2625 | op->failmsg ("You must get it first!\n"); |
2625 | pl->failmsg ("You must get it first!\n"); |
2626 | } |
2626 | } |
2627 | |
2627 | |
2628 | return tmp; |
2628 | return tmp; |
2629 | } |
2629 | } |
2630 | |
2630 | |