Makes math helpers defines for performance

This commit is contained in:
kevinz000
2018-12-06 16:15:00 -05:00
committed by VirgoBot
parent 4a27ffb35a
commit fc178c1e04
48 changed files with 1000 additions and 228 deletions
+2 -2
View File
@@ -130,9 +130,9 @@
var/offset = 0
var/points = round((radius * 2 * M_PI) / arcLength)
var/angle = round(ToDegrees(arcLength / radius), 1)
var/angle = round(TODEGREES(arcLength / radius), 1)
if(!IsInteger(radius))
if(!ISINTEGER(radius))
offset = 45 //degrees
for(var/j = 0, j < points, j++)