byond - Modules - TypesDefine Details

code/__DEFINES/_math.dm

get_turfGet the turf that A resides in, regardless of any containers.
SIGNGets the sign of x, returns -1 if negative, 0 if 0, 1 if positive

Define Details

SIGN

Gets the sign of x, returns -1 if negative, 0 if 0, 1 if positive

get_turf

Get the turf that A resides in, regardless of any containers.

Use in favor of A.loc or src.loc so that things work correctly when stored inside an inventory, locker, or other container.