Minimap Issues for Small-Sized Maps

Bug #1426579 reported by Andre Novellino Gouvêa
6
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://dl.dropboxusercontent.com/u/1732902/Wyrmsun/screen_minimap_error.png

The tileset, for reference:
https://dl.dropboxusercontent.com/u/1732902/Wyrmsun/dungeon.png

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

Revision history for this message
Andre Novellino Gouvêa (andre-ng) wrote :

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:
const int n = std::max(std::max(Map.Info.MapWidth, Map.Info.MapHeight), 32);

Revision history for this message
cybermind (iddqd-mail) wrote :

Fixed in rev. 8962

Changed in stratagus:
status: New → Fix Committed
assignee: nobody → cybermind (iddqd-mail)
Revision history for this message
Andre Novellino Gouvêa (andre-ng) wrote :

cool :)

cybermind (iddqd-mail)
Changed in stratagus:
status: Fix Committed → Fix Released
milestone: none → 2.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.