[Change] Best not render the names when we are zoomed out, as they overlap each other etc.

This commit is contained in:
Allanis 2013-03-10 19:01:40 +00:00
parent 5221a51241
commit a3f5e18306

View File

@ -160,6 +160,7 @@ static void map_render(double bx, double by, double w, double h) {
r, bx, by, w, h); r, bx, by, w, h);
// Draw the system name. // Draw the system name.
if(map_zoom >= 1.) // Can't be tiny.
gl_printMax(&gl_smallFont, (bx+w)-(x+7. + sys->pos.x * map_zoom), gl_printMax(&gl_smallFont, (bx+w)-(x+7. + sys->pos.x * map_zoom),
x + 7. + sys->pos.x * map_zoom + gl_screen.w/2., x + 7. + sys->pos.x * map_zoom + gl_screen.w/2.,
y - 5. + sys->pos.y * map_zoom + gl_screen.h/2., y - 5. + sys->pos.y * map_zoom + gl_screen.h/2.,