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

5 lines
89 B
Plaintext
Raw Permalink Normal View History

2022-08-07 21:14:04 +00:00
function clampneg(val) {
if val < 0 return -1
else if val > 0 return 1
else return 0
}