Advertisement
MageKing17

Untitled

Feb 25th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.71 KB | None | 0 0
  1. Index: code/ai/aicode.cpp
  2. ===================================================================
  3. --- code/ai/aicode.cpp  (revision 11258)
  4. +++ code/ai/aicode.cpp  (working copy)
  5. @@ -4706,12 +4706,12 @@
  6.     //  If in front of enemy, turn away from it.
  7.     //  If behind enemy, try to get fully behind it.
  8.     if (away_dot < 0.0f) {
  9. -       turn_away_from_point(Pl_objp, &enemy_pos, Pl_objp->phys_info.speed);
  10. +       turn_away_from_point(Pl_objp, &enemy_pos, 0.0f);
  11.     } else {
  12.         vec3d   goal_pos;
  13.  
  14.         vm_vec_scale_add(&goal_pos, &En_objp->pos, &En_objp->orient.vec.fvec, -100.0f);
  15. -       turn_towards_point(Pl_objp, &goal_pos, NULL, Pl_objp->phys_info.speed);
  16. +       turn_towards_point(Pl_objp, &goal_pos, NULL, 0.0f);
  17.     }
  18.  
  19.     //  Set speed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement