Skip to content

Commit

Permalink
Get_Compass_Dir get_turfs
Browse files Browse the repository at this point in the history
discard pixel offsets so projectile knockback behaves responsibly
  • Loading branch information
Doubleumc committed Dec 20, 2023
1 parent b74d754 commit cfd00d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
return NORTH

/proc/Get_Compass_Dir(atom/start, atom/end)//get_dir() only considers an object to be north/south/east/west if there is zero deviation. This uses rounding instead.
return angle_to_dir(Get_Angle(start, end))
return angle_to_dir(Get_Angle(get_turf(start), get_turf(end)))

// Among other things, used by flamethrower and boiler spray to calculate if flame/spray can pass through.
// Returns an atom for specific effects (primarily flames and acid spray) that damage things upon contact
Expand Down

0 comments on commit cfd00d4

Please sign in to comment.