Adjusted movement restrictions
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
+2
-4
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user