Skip to content

Commit

Permalink
Fixes broadside cannon direction recognition (#2695)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaFire15 authored Aug 24, 2024
1 parent d8f7da9 commit 5039f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nsv13/code/__HELPERS/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

///Whether the angle is on the port or starboard side of the ship (facing north or south on the map)
/proc/angle2dir_ship(angle)
if(0 < angle && angle < 180)
var/modulated_angle = (((angle % 360) + 360) % 360)
if(modulated_angle <= 180)
return SOUTH
else
return NORTH

0 comments on commit 5039f27

Please sign in to comment.