mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user