[-] Fixed bug with minimap, thanks to Andrettin

This commit is contained in:
cybermind 2015-03-01 14:43:18 +05:00
parent ece63c1f0d
commit b759845ea3

View file

@ -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;