diff options
Diffstat (limited to 'graphics/src/render.rs')
| -rw-r--r-- | graphics/src/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 1061af3..945528b 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -736,8 +736,8 @@ impl DungeonExt for Dungeon { }; /// The maximum position the camera is allowed to go const CAMERA_MAX: Vector2 = vec2! { - MAP_SIZE * TILE_SIZE - RENDER_WIDTH/2, - MAP_SIZE * TILE_SIZE - RENDER_HEIGHT/2 - UI_HEIGHT/2, + MAP_SIZE * TILE_SIZE - RENDER_WIDTH/2 - TILE_SIZE/2, + MAP_SIZE * TILE_SIZE - RENDER_HEIGHT/2 - TILE_SIZE/2, }; let pos = self.camera(); |