Update projectile.dm

Added variable to offset rounding so that it actually rounds to the closest number instead of flooring it to the next lowest integral.
This commit is contained in:
DaveKorhal
2020-07-11 16:16:13 -05:00
parent cf3e26f670
commit b67f03d017
+2 -2
View File
@@ -247,8 +247,8 @@
M.Turn(Angle)
transform = M
var/Pixel_x = round(sin(Angle) + 16 * sin(Angle) * 2)
var/Pixel_y = round(cos(Angle) + 16 * cos(Angle) * 2)
var/Pixel_x = round(sin(Angle) + 16 * sin(Angle) * 2, 1)
var/Pixel_y = round(cos(Angle) + 16 * cos(Angle) * 2, 1)
var/pixel_x_offset = pixel_x + Pixel_x
var/pixel_y_offset = pixel_y + Pixel_y
var/new_x = x