Changeset 671
- Timestamp:
- 01/31/08 03:51:36 (7 months ago)
- Files:
-
- trunk/src/attack.c (modified) (2 diffs)
- trunk/src/externs.h (modified) (1 diff)
- trunk/src/monster2.c (modified) (2 diffs)
- trunk/src/spells2.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/attack.c
r653 r671 714 714 if ((dir == 5) && target_okay()) 715 715 { 716 tx = p_ptr->target_col; 717 ty = p_ptr->target_row; 716 target_get(&tx, &ty); 718 717 } 719 718 … … 1007 1006 if ((dir == 5) && target_okay()) 1008 1007 { 1009 tx = p_ptr->target_col; 1010 ty = p_ptr->target_row; 1008 target_get(&tx, &ty); 1011 1009 } 1012 1010 trunk/src/externs.h
r670 r671 557 557 bool target_set_interactive(int mode); 558 558 bool get_aim_dir(int *dp); 559 void target_get(s16b *col, s16b *row); 560 s16b target_get_monster(void); 559 561 560 562 /* trap.c */ trunk/src/monster2.c
r633 r671 49 49 50 50 /* Hack -- remove target monster */ 51 if ( p_ptr->target_who== i) target_set_monster(0);51 if (target_get_monster() == i) target_set_monster(0); 52 52 53 53 /* Hack -- remove tracked monster */ … … 144 144 145 145 /* Hack -- Update the target */ 146 if ( p_ptr->target_who == i1) p_ptr->target_who = i2;146 if (target_get_monster() == i1) target_set_monster(i2); 147 147 148 148 /* Hack -- Update the health bar */ trunk/src/spells2.c
r656 r671 3149 3149 flg &= ~(PROJECT_STOP); 3150 3150 3151 ty = p_ptr->target_row; 3152 tx = p_ptr->target_col; 3151 target_get(&tx, &ty); 3153 3152 } 3154 3153 … … 3181 3180 /* Hack -- Use an actual "target" (early detonation) */ 3182 3181 if ((dir == 5) && target_okay()) 3183 { 3184 ty = p_ptr->target_row; 3185 tx = p_ptr->target_col; 3186 } 3182 target_get(&tx, &ty); 3187 3183 3188 3184 while (num--) … … 3215 3211 /* Hack -- Use an actual "target" */ 3216 3212 if ((dir == 5) && target_okay()) 3217 { 3218 ty = p_ptr->target_row; 3219 tx = p_ptr->target_col; 3220 } 3213 target_get(&tx, &ty); 3221 3214 3222 3215 /* Analyze the "dir" and the "target", do NOT explode */
