From a3f5e18306c2798d3d2a63c922854bff187f3828 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 10 Mar 2013 19:01:40 +0000 Subject: [PATCH] [Change] Best not render the names when we are zoomed out, as they overlap each other etc. --- src/map.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/map.c b/src/map.c index 6c8784d..282a494 100644 --- a/src/map.c +++ b/src/map.c @@ -160,10 +160,11 @@ static void map_render(double bx, double by, double w, double h) { r, bx, by, w, h); // Draw the system name. - gl_printMax(&gl_smallFont, (bx+w)-(x+7. + sys->pos.x * map_zoom), - x + 7. + sys->pos.x * map_zoom + gl_screen.w/2., - y - 5. + sys->pos.y * map_zoom + gl_screen.h/2., - &cWhite, sys->name); + if(map_zoom >= 1.) // Can't be tiny. + gl_printMax(&gl_smallFont, (bx+w)-(x+7. + sys->pos.x * map_zoom), + x + 7. + sys->pos.x * map_zoom + gl_screen.w/2., + y - 5. + sys->pos.y * map_zoom + gl_screen.h/2., + &cWhite, sys->name); // Draw the hyperspace paths. glShadeModel(GL_SMOOTH);