Changeset 1455
- Timestamp:
- 06/28/09 09:36:16 (14 months ago)
- Files:
-
- 1 modified
-
trunk/src/cmd-obj.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cmd-obj.c
r1450 r1455 834 834 int item; 835 835 object_type *o_ptr; 836 bool cmd_needs_aim = FALSE; 836 837 837 838 cptr q, s; … … 852 853 o_ptr = object_from_item_idx(item); 853 854 855 /* These commands need an aim */ 856 if (item_actions[act].command == CMD_QUAFF || 857 item_actions[act].command == CMD_ACTIVATE || 858 item_actions[act].command == CMD_USE_WAND || 859 item_actions[act].command == CMD_USE_ROD || 860 item_actions[act].command == CMD_USE_STAFF || 861 item_actions[act].command == CMD_READ_SCROLL) 862 { 863 cmd_needs_aim = TRUE; 864 } 865 854 866 if (item_actions[act].action != NULL) 855 867 item_actions[act].action(o_ptr, item); 856 else if ( obj_needs_aim(o_ptr))868 else if (cmd_needs_aim && obj_needs_aim(o_ptr)) 857 869 { 858 870 int dir;
