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;
|
||||
}
|
||||
|
||||
// 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)
|
||||
|
||||
Reference in New Issue
Block a user