Skip to content
Snippets Groups Projects

Tweaks to R_PointToAngle and R_PointToAngle2

Merged Monster Iestyn requested to merge pointtoangle-fix into next
  1. Jun 21, 2015
    • Monster Iestyn's avatar
      Removed all "-1"s from R_PointToAngle and R_PointToAngle2, in order to allow... · 61388459
      Monster Iestyn authored
      Removed all "-1"s from R_PointToAngle and R_PointToAngle2, in order to allow ALL basic compass directions at the least to be given the right angle by these functions.
      
      Note: Before this change, North and West directions would be returned as ANGLE_90-1 and ANGLE_180-1. This caused the pusher polyobjects in THZ2 to slowly move sideways as a side-effect (and probably caused similar bugs in the past too, these functions have barely been touched in a decade it turns out.)
      61388459
Loading