Changeset 132


Ignore:
Timestamp:
Mar 22, 2008, 11:12:56 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fix an aiming bug when creatures are too close to the player.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/cop.cpp

    r126 r132  
    170170
    171171    // if the pointer is too close to the player go with the angle shown, not the angle through the pointer
    172     if (abs(q->y-fb[1]-v->pointer_y)<45 & abs(v->pointer_x-q->x+fb[0])<40)
     172    if (abs(q->y-fb[1]-v->pointer_y)<45 && abs(v->pointer_x-q->x+fb[0])<40)
    173173      o->lvars[point_angle]=lisp_atan2(fb[1]-iy,fb[0]-ix);
    174174    else
Note: See TracChangeset for help on using the changeset viewer.