[Change] Minor map tweaks.
This commit is contained in:
parent
d824c857f7
commit
7e2e21c235
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user