[-] Fixed bug with minimap, thanks to Andrettin
This commit is contained in:
parent
ece63c1f0d
commit
b759845ea3
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ static void CreateMinimapTexture()
|
|||
void CMinimap::Create()
|
||||
{
|
||||
// Scale to biggest value.
|
||||
const int n = std::max(Map.Info.MapWidth, Map.Info.MapHeight);
|
||||
const int n = std::max(std::max(Map.Info.MapWidth, Map.Info.MapHeight), 32);
|
||||
|
||||
MinimapScaleX = (W * MINIMAP_FAC + n - 1) / n;
|
||||
MinimapScaleY = (H * MINIMAP_FAC + n - 1) / n;
|
||||
|
|
Loading…
Reference in a new issue