[Change] Minor map tweaks.

This commit is contained in:
Allanis 2013-12-24 00:03:26 +00:00
parent d824c857f7
commit 7e2e21c235

View File

@ -342,7 +342,7 @@ static void map_render(double bx, double by, double w, double h) {
} }
/* Draw the system name. */ /* Draw the system name. */
if(sys_isKnown(sys)) { if(sys_isKnown(sys) && (map_zoom > 0.5)) {
tx = x + 7. + sys->pos.x * map_zoom; tx = x + 7. + sys->pos.x * map_zoom;
ty = y - 5. + sys->pos.y * map_zoom; ty = y - 5. + sys->pos.y * map_zoom;
gl_print(&gl_smallFont, gl_print(&gl_smallFont,
@ -478,7 +478,7 @@ static void map_buttonZoom(char* str) {
else if(strcmp(str, "btnZoomOut")==0) { else if(strcmp(str, "btnZoomOut")==0) {
map_zoom -= (map_zoom > 1.) ? 0.5 : 0.25; map_zoom -= (map_zoom > 1.) ? 0.5 : 0.25;
map_zoom = MAX(0.5, map_zoom); map_zoom = MAX(0.25, map_zoom);
} }
} }