ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/monster.C
(Generate patch)

Comparing deliantra/server/server/monster.C (file contents):
Revision 1.23 by root, Thu Jan 18 19:42:10 2007 UTC vs.
Revision 1.24 by root, Thu Jan 18 21:27:19 2007 UTC

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))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines