Fix loop to not bug
This commit is contained in:
parent
e14a5184ce
commit
2a7ae5278e
1 changed files with 2 additions and 2 deletions
4
racing.h
4
racing.h
|
@ -176,7 +176,7 @@ TPE_Vec3 _LCR_racingBlockEnvFunc(TPE_Vec3 point, const uint8_t *block)
|
||||||
TPE_Unit rampShift = block[0] != LCR_BLOCK_RAMP_CURVED ?
|
TPE_Unit rampShift = block[0] != LCR_BLOCK_RAMP_CURVED ?
|
||||||
LCR_PHYSICS_UNIT / 6 : 0;
|
LCR_PHYSICS_UNIT / 6 : 0;
|
||||||
|
|
||||||
sides[0] = LCR_PHYSICS_UNIT / 8 - rampShift;
|
sides[0] = -1 * LCR_PHYSICS_UNIT / 8 - rampShift;
|
||||||
sides[1] = -1 * LCR_PHYSICS_UNIT / 4;
|
sides[1] = -1 * LCR_PHYSICS_UNIT / 4;
|
||||||
sides[2] = LCR_PHYSICS_UNIT / 2 - rampShift;
|
sides[2] = LCR_PHYSICS_UNIT / 2 - rampShift;
|
||||||
sides[3] = -1 * LCR_PHYSICS_UNIT / 4;
|
sides[3] = -1 * LCR_PHYSICS_UNIT / 4;
|
||||||
|
@ -191,7 +191,7 @@ TPE_Vec3 _LCR_racingBlockEnvFunc(TPE_Vec3 point, const uint8_t *block)
|
||||||
sides[2] = LCR_PHYSICS_UNIT / 2 - rampShift;
|
sides[2] = LCR_PHYSICS_UNIT / 2 - rampShift;
|
||||||
sides[3] = -1 * LCR_PHYSICS_UNIT / 4;
|
sides[3] = -1 * LCR_PHYSICS_UNIT / 4;
|
||||||
sides[4] = LCR_PHYSICS_UNIT / 2 - rampShift;
|
sides[4] = LCR_PHYSICS_UNIT / 2 - rampShift;
|
||||||
sides[5] = 0;
|
sides[5] = LCR_PHYSICS_UNIT / 8;
|
||||||
|
|
||||||
_CHECK_NEXT(TPE_envAATriPrism(point,TPE_vec3(0,0,0),sides,LCR_PHYSICS_UNIT
|
_CHECK_NEXT(TPE_envAATriPrism(point,TPE_vec3(0,0,0),sides,LCR_PHYSICS_UNIT
|
||||||
,2));
|
,2));
|
||||||
|
|
Loading…
Reference in a new issue