code/__DEFINES/path_defines.dm ![code/__DEFINES/path_defines.dm0](git.png)
CANPATHFINDPASS_DENSITY | If set, we make the assumption that CanPathfindPass() will NEVER return FALSE unless density is true |
---|---|
CANPATHFINDPASS_ALWAYS_PROC | If this is set, we bypass density checks and always call the proc |
CAN_STEP | A helper macro to see if it's possible to step from the first turf into the second one, minding things like door access and directional windows. If you really want to optimize things, optimize this, cuz this gets called a lot. We do early next.density check despite it being already checked in LinkBlockedWithAccess for short-circuit performance |
Define Details
CANPATHFINDPASS_ALWAYS_PROC ![code/__DEFINES/path_defines.dm 5](git.png)
If this is set, we bypass density checks and always call the proc
CANPATHFINDPASS_DENSITY ![code/__DEFINES/path_defines.dm 3](git.png)
If set, we make the assumption that CanPathfindPass() will NEVER return FALSE unless density is true
CAN_STEP ![code/__DEFINES/path_defines.dm 12](git.png)
A helper macro to see if it's possible to step from the first turf into the second one, minding things like door access and directional windows. If you really want to optimize things, optimize this, cuz this gets called a lot. We do early next.density check despite it being already checked in LinkBlockedWithAccess for short-circuit performance