Adjusted movement restrictions

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-09-02 15:15:24 +02:00
parent 4b4f38fea9
commit d2456194c3
+2 -4
View File
@@ -792,10 +792,8 @@ void display()
playerDeltaY = sin(playerAngle) * 5.0f; playerDeltaY = sin(playerAngle) * 5.0f;
} }
// We need to check if we're going to bump into a wall // We need to check if we're going to bump into a wall and prevent that from happening.
// and prevent that from happening. float movementRestriction = mapSize / 4;
int movementRestriction = 5;
int xOffset = 0; int xOffset = 0;
if (playerDeltaX < 0) if (playerDeltaX < 0)