Files
Paradise/code/__DEFINES/zlevel.dm
Crazylemon64 bf2a895658 Makes space transition checks more consistent
Fixes a runtime on map start due to not having updated all the border
definitions all at once - the new defines will now resolve this.
2016-08-22 19:46:23 -07:00

13 lines
464 B
Plaintext

#define Z_LEVEL_NORTH "1"
#define Z_LEVEL_SOUTH "2"
#define Z_LEVEL_EAST "4"
#define Z_LEVEL_WEST "8"
#define TRANSITIONEDGE 7 //Distance from edge to move to another z-level
// Defining these here so everything is consistent
#define TRANSITION_BORDER_NORTH (world.maxy - TRANSITIONEDGE - 1)
#define TRANSITION_BORDER_SOUTH TRANSITIONEDGE
#define TRANSITION_BORDER_EAST (world.maxx - TRANSITIONEDGE - 1)
#define TRANSITION_BORDER_WEST TRANSITIONEDGE