Applied simplified test when going in the negative direction as well.
This commit is contained in:
parent
d1bcaec2c5
commit
3ca0222b19
@ -23,14 +23,11 @@ freely, subject to the following restrictions:
|
||||
|
||||
#include <array>
|
||||
|
||||
#define CAN_GO_NEG_X(val) ((val % this->mVolume->m_uChunkSideLength != 0))
|
||||
//#define CAN_GO_POS_X(val) (((val + 1) % this->mVolume->m_uChunkSideLength != 0))
|
||||
#define CAN_GO_NEG_X(val) (this->m_uXPosInChunk > 0)
|
||||
#define CAN_GO_POS_X(val) (this->m_uXPosInChunk < this->mVolume->m_uChunkSideLength-1)
|
||||
#define CAN_GO_NEG_Y(val) ((val % this->mVolume->m_uChunkSideLength != 0))
|
||||
//#define CAN_GO_POS_Y(val) (((val + 1) % this->mVolume->m_uChunkSideLength != 0))
|
||||
#define CAN_GO_NEG_Y(val) (this->m_uYPosInChunk > 0)
|
||||
#define CAN_GO_POS_Y(val) (this->m_uYPosInChunk < this->mVolume->m_uChunkSideLength-1)
|
||||
#define CAN_GO_NEG_Z(val) ((val % this->mVolume->m_uChunkSideLength != 0))
|
||||
//#define CAN_GO_POS_Z(val) (((val + 1) % this->mVolume->m_uChunkSideLength != 0))
|
||||
#define CAN_GO_NEG_Z(val) (this->m_uZPosInChunk > 0)
|
||||
#define CAN_GO_POS_Z(val) (this->m_uZPosInChunk < this->mVolume->m_uChunkSideLength-1)
|
||||
|
||||
#define NEG_X_DELTA (-(deltaX[this->m_uXPosInChunk-1]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user