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
+1 -1
View File
@@ -137,7 +137,7 @@
else
icon_state = "shredder-off"
// Fullness overlay
overlays += "shredder-[max(0,min(5,Floor(paperamount/max_paper*5)))]"
overlays += "shredder-[max(0,min(5,FLOOR(paperamount/max_paper*5, 1)))]"
if (panel_open)
overlays += "panel_open"