eastern-flames/eastern flames/scripts/clampneg/clampneg.gml

5 lines
89 B
Plaintext

function clampneg(val) {
if val < 0 return -1
else if val > 0 return 1
else return 0
}