fixed some drawing glitches in the top row (bug #8739 and #8071)

This commit is contained in:
Mark de Wever 2007-05-13 14:12:11 +00:00
parent 61359e77bb
commit 8b4c2fd112
3 changed files with 8 additions and 2 deletions

View File

@ -26,6 +26,7 @@ Version 1.3.2+svn:
* the leader crown don't hide anymore the top of hp/xp bars (bug #9120)
* better flag icons for the status bar
* taller flags that don't get hidden behind units so easily
* fixed some drawing glitches in the top row (bug #8739 and #8071)
* sound and music:
* added a sound when a unit is slowed
* added a music track containing only silence (for stopping all music instead

View File

@ -7,8 +7,10 @@ Version 1.3.2+svn:
* New mainline campaigns: Northern Rebirth, Sceptre of Fire, Son of the
Black Eye, Descent into Darkness.
* Rewritten second scenario of Under the Burning Suns.
* Graphics
* The leader crown don't hide anymore the top of hp/xp bars.
* Tiles in the top row are drawn properly now.
* Sound and music
* Added a sound when a unit is slowed.

View File

@ -1075,8 +1075,11 @@ void terrain_builder::build_terrains()
}
}
} else {
for(int x = -1; x <= map_.x(); ++x) {
for(int y = -1; y <= map_.y(); ++y) {
// some overlays fail but (probably their map size) this is fixed by
// changing the start position from -1 to -2. So it's no real fix but
// a hack, so still need to figure out the best number -- Mordante
for(int x = -2; x <= map_.x(); ++x) {
for(int y = -2; y <= map_.y(); ++y) {
const gamemap::location loc(x,y);
if(rule_matches(rule->second, loc, rule_index, true))
apply_rule(rule->second, loc);