Make the previous fix works for any border size
(locations of village list shifted by the border size)
This commit is contained in:
parent
3665255543
commit
ab002897ad
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ void gamemap::read(const std::string& data, const tborder border_tiles, const tu
|
|||
if(x >= border_size_ && x < w_ && y >= border_size_ && y < h_ &&
|
||||
is_village(tiles_[x][y])) {
|
||||
|
||||
villages_.push_back(location(x-1, y-1));
|
||||
villages_.push_back(location(x-border_size_, y-border_size_));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue