Have at least DefaultZoom as minimum zoom, closes: #5015
(note that the map is not centered though)
This commit is contained in:
parent
66d1de0fd0
commit
121a117d96
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ namespace {
|
|||
if(map.x()<4 || !map.y() ) return DefaultZoom;
|
||||
const int min_zoom1 = viewport.w/((map.x()*3)/4);
|
||||
const int min_zoom2 = viewport.h/map.y();
|
||||
return maximum<int>(min_zoom1,min_zoom2);
|
||||
int zoom = maximum<int>(min_zoom1,min_zoom2);
|
||||
return minimum<int>(zoom,DefaultZoom);
|
||||
}
|
||||
|
||||
const size_t SideBarGameStatus_x = 16;
|
||||
|
|
Loading…
Add table
Reference in a new issue