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;
}
// We need to check if we're going to bump into a wall
// and prevent that from happening.
int movementRestriction = 5;
// We need to check if we're going to bump into a wall and prevent that from happening.
float movementRestriction = mapSize / 4;
int xOffset = 0;
if (playerDeltaX < 0)