Add test hill
This commit is contained in:
@@ -95,7 +95,7 @@ void entityWalk(entity_t *entity, const entitydir_t direction) {
|
||||
tileIsRamp(tileCurrent) &&
|
||||
(
|
||||
// Can only walk UP the direction the ramp faces.
|
||||
(direction+TILE_SHAPE_RAMP_SOUTH) == tileCurrent ||
|
||||
(direction+TILE_SHAPE_RAMP_NORTH) == tileCurrent ||
|
||||
// If diagonal ramp, can go up one of two ways only.
|
||||
(
|
||||
(
|
||||
@@ -137,7 +137,7 @@ void entityWalk(entity_t *entity, const entitydir_t direction) {
|
||||
tileIsRamp(tileBelow) &&
|
||||
(
|
||||
// This handles regular cardinal ramps
|
||||
(entityDirGetOpposite(direction)+TILE_SHAPE_RAMP_SOUTH) == tileBelow ||
|
||||
(entityDirGetOpposite(direction)+TILE_SHAPE_RAMP_NORTH) == tileBelow ||
|
||||
// This handles diagonal ramps
|
||||
(
|
||||
(
|
||||
|
||||
@@ -10,17 +10,17 @@
|
||||
|
||||
|
||||
typedef enum {
|
||||
TILE_SHAPE_NULL,
|
||||
TILE_SHAPE_NULL = 0,
|
||||
|
||||
TILE_SHAPE_GROUND,
|
||||
TILE_SHAPE_RAMP_NORTH,
|
||||
TILE_SHAPE_RAMP_SOUTH,
|
||||
TILE_SHAPE_RAMP_EAST,
|
||||
TILE_SHAPE_RAMP_WEST,
|
||||
TILE_SHAPE_RAMP_NORTHEAST,
|
||||
TILE_SHAPE_RAMP_NORTHWEST,
|
||||
TILE_SHAPE_RAMP_SOUTHEAST,
|
||||
TILE_SHAPE_RAMP_SOUTHWEST,
|
||||
TILE_SHAPE_GROUND = 1,
|
||||
TILE_SHAPE_RAMP_NORTH = 2,
|
||||
TILE_SHAPE_RAMP_EAST = 3,
|
||||
TILE_SHAPE_RAMP_SOUTH = 4,
|
||||
TILE_SHAPE_RAMP_WEST = 5,
|
||||
TILE_SHAPE_RAMP_NORTHEAST = 6,
|
||||
TILE_SHAPE_RAMP_NORTHWEST = 7,
|
||||
TILE_SHAPE_RAMP_SOUTHEAST = 8,
|
||||
TILE_SHAPE_RAMP_SOUTHWEST = 9,
|
||||
|
||||
TILE_SHAPE_COUNT
|
||||
} tile_t;
|
||||
|
||||
Reference in New Issue
Block a user