Skip to content

Commit

Permalink
Use native sign() in BYOND 516 (#37415)
Browse files Browse the repository at this point in the history
  • Loading branch information
ike709 authored Feb 8, 2025
1 parent ceb170c commit f1240f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
/*
* A large number of misc global procs.
*/
#if DM_VERSION < 516
/proc/sign(x)
return x!=0?x/abs(x):0
#endif

/proc/getline(atom/M,atom/N)//Ultra-Fast Bresenham Line-Drawing Algorithm
var/px=M.x //starting x
Expand Down

0 comments on commit f1240f9

Please sign in to comment.