From 2a7ae5278ec5af0afa13763ed6e10976c420003c Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Fri, 6 Dec 2024 00:30:24 +0100 Subject: [PATCH] Fix loop to not bug --- racing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/racing.h b/racing.h index 0c90396..9220a65 100644 --- a/racing.h +++ b/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 ? 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[2] = LCR_PHYSICS_UNIT / 2 - rampShift; 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[3] = -1 * LCR_PHYSICS_UNIT / 4; 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 ,2));