Fixed bug where keeps located on the border of the screen had broken graphics.
Keeps (as previously villages) may not be automatically extended at the border of the map now.
This commit is contained in:
parent
f0c54ebeb0
commit
fcdb2f6d86
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ gamemap::TERRAIN gamemap::get_terrain(const gamemap::location& loc) const
|
|||
TERRAIN used_terrain = 0;
|
||||
int terrain_count = 0;
|
||||
for(int i = 0; i != nitems; ++i) {
|
||||
if(items[i] != used_terrain && !is_village(items[i])) {
|
||||
if(items[i] != used_terrain && !is_village(items[i]) && !is_keep(items[i])) {
|
||||
const int c = std::count(items+i+1,items+nitems,items[i]) + 1;
|
||||
if(c > terrain_count) {
|
||||
used_terrain = items[i];
|
||||
|
@ -370,4 +370,4 @@ std::vector<gamemap::location> parse_location_range(const std::string& x, const
|
|||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue