let you know whether the terrain is sloped. Like
b_slopeleft = true; would mean that the terrain has a
slope to the left. or maybe even
#define LEFT_SLOPE 0
#define HORIZONTAL_SLOPE 1
#define RIGHT_SLOPE 2
#define VERTICAL_SLOPE 3
if (m_slope == LEFT_SLOPE)
// the ground is sloping to the left
else if (m_slope == RIGHT_SLOPE)
// the ground is sloping to the right
else if (m_slope == HORIZONTAL_SLOPE)
// the ground is flat
else if (m_slope == VERTICAL_SLOPE)
// have some sort of barrier here, or just vertical
terrain
I hope you get the idea.
Khawk