… | |
… | |
1644 | tmp = op; |
1644 | tmp = op; |
1645 | |
1645 | |
1646 | /* New throw code: look through the inventory. Grap the first legal is_thrown |
1646 | /* New throw code: look through the inventory. Grap the first legal is_thrown |
1647 | * marked item and throw it to the enemy. |
1647 | * marked item and throw it to the enemy. |
1648 | */ |
1648 | */ |
1649 | |
|
|
1650 | for (tmp = op->inv; tmp; tmp = tmp->below) |
1649 | for (tmp = op->inv; tmp; tmp = tmp->below) |
1651 | { |
1650 | { |
1652 | |
|
|
1653 | /* Can't throw invisible objects or items that are applied */ |
1651 | /* Can't throw invisible objects or items that are applied */ |
1654 | if (tmp->invisible || QUERY_FLAG (tmp, FLAG_APPLIED)) |
1652 | if (tmp->invisible || QUERY_FLAG (tmp, FLAG_APPLIED)) |
1655 | continue; |
1653 | continue; |
1656 | |
1654 | |
1657 | if (QUERY_FLAG (tmp, FLAG_IS_THROWN)) |
1655 | if (QUERY_FLAG (tmp, FLAG_IS_THROWN)) |