From 7e2e21c235130432d845cdd2e2de0842ecbdd7c1 Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Tue, 24 Dec 2013 00:03:26 +0000 Subject: [PATCH] [Change] Minor map tweaks. --- src/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.c b/src/map.c index 891f4d9..67d803e 100644 --- a/src/map.c +++ b/src/map.c @@ -342,7 +342,7 @@ static void map_render(double bx, double by, double w, double h) { } /* Draw the system name. */ - if(sys_isKnown(sys)) { + if(sys_isKnown(sys) && (map_zoom > 0.5)) { tx = x + 7. + sys->pos.x * map_zoom; ty = y - 5. + sys->pos.y * map_zoom; gl_print(&gl_smallFont, @@ -478,7 +478,7 @@ static void map_buttonZoom(char* str) { else if(strcmp(str, "btnZoomOut")==0) { map_zoom -= (map_zoom > 1.) ? 0.5 : 0.25; - map_zoom = MAX(0.5, map_zoom); + map_zoom = MAX(0.25, map_zoom); } }