Correctly clip narrow height levels.

This commit is contained in:
Steve 2018-03-31 19:05:20 +01:00
parent 55b163873d
commit b395c7e8d2
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static void calculateMapBounds(void)
if (world.map.bounds.h - MAP_RENDER_HEIGHT < world.map.bounds.y)
{
world.map.bounds.y = 0;
world.map.bounds.y -= (MAP_RENDER_HEIGHT - (world.map.bounds.h - world.map.bounds.y));
}
world.map.bounds.x = (int) limit(world.map.bounds.x, 0, MAP_WIDTH - MAP_RENDER_WIDTH);