fixup 5e0d39c3b6
This commit is contained in:
parent
5e0d39c3b6
commit
0841876127
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,6 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
|
|||
{
|
||||
const terrain_type_data & tdata = *map.tdata();
|
||||
|
||||
DBG_DP << "creating minimap " << int(map.w()*scale*0.75) << "," << map.h()*scale << "\n";
|
||||
|
||||
const bool preferences_minimap_draw_terrain = preferences::minimap_draw_terrain();
|
||||
const bool preferences_minimap_terrain_coding = preferences::minimap_terrain_coding();
|
||||
|
@ -53,6 +52,8 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
|
|||
|
||||
const int scale = (preferences_minimap_draw_terrain && preferences_minimap_terrain_coding) ? 24 : 4;
|
||||
|
||||
DBG_DP << "creating minimap " << int(map.w()*scale*0.75) << "," << map.h()*scale << "\n";
|
||||
|
||||
const size_t map_width = map.w()*scale*3/4;
|
||||
const size_t map_height = map.h()*scale;
|
||||
if(map_width == 0 || map_height == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue