Removes unnessacary math defines

This commit is contained in:
ShizCalev
2020-02-17 23:09:09 -05:00
parent fcf32c3d2d
commit 7209ac3c93
160 changed files with 331 additions and 335 deletions
+1 -1
View File
@@ -393,7 +393,7 @@
var/nsd = CONFIG_GET(number/note_stale_days)
var/nfd = CONFIG_GET(number/note_fresh_days)
if (agegate && type == "note" && isnum(nsd) && isnum(nfd) && nsd > nfd)
var/alpha = CLAMP(100 - (age - nfd) * (85 / (nsd - nfd)), 15, 100)
var/alpha = clamp(100 - (age - nfd) * (85 / (nsd - nfd)), 15, 100)
if (alpha < 100)
if (alpha <= 15)
if (skipped)