Minimap Issues for Small-Sized Maps
Bug #1426579 reported by
Andre Novellino Gouvêa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stratagus |
Fix Released
|
Undecided
|
cybermind |
Bug Description
The minimap looks quite weird when a small map is used. Here is an example of as 20x20 map:
https:/
The tileset, for reference:
https:/
Apparently, the minimap is drawing the rug and gold pile tiles, even though those are not the tiles actually used at those coordinates.
Related branches
Changed in stratagus: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.3 |
To post a comment you must log in.
Ok, this seems to fix the issue. In CMinimap::Create(), replace this:
const int n = std::max( Map.Info. MapWidth, Map.Info. MapHeight) ;
...with this: std::max( Map.Info. MapWidth, Map.Info. MapHeight) , 32);
const int n = std::max(