From 032ea14c3b98c0be9454e9f7266e0a893bc0c501 Mon Sep 17 00:00:00 2001 From: Paul Merrill Date: Sun, 24 Jul 2011 21:24:07 -0700 Subject: [PATCH] fix redraw at top-left of map --- src/area.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/area.cpp b/src/area.cpp index c2c6436..00f7f3f 100644 --- a/src/area.cpp +++ b/src/area.cpp @@ -216,11 +216,11 @@ cube_t Area::visibleTiles() const (double)tileHeight); // Does the entire width or height of the map fit onscreen? - if (x1 > 0 && y1 > 0) + if (x1 >= 0 && y1 >= 0) return cube(x1, y1, 0, x2, y2, 1); - else if (x1 > 0) + else if (x1 >= 0) return cube(x1, 0, 0, x2, dim.y, 1); - else if (y1 > 0) + else if (y1 >= 0) return cube(0, y1, 0, dim.x, y2, 1); else return cube(0, 0, 0, dim.x, dim.y, 1); -- 2.11.4.GIT