Fix an off-by-one (in x and y) position of villages in the village list of map
- This fix bug for reachables villages to teleport (incorrect black stripes) - incorrect status-bar info of number of visible villages - possible bad AI decisions about villages (where they are and owned or not) - waa still need to test "store_villages" (possibly affected/fixed)
This commit is contained in:
parent
20fe89a459
commit
f265b538d9
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, y));
|
||||
villages_.push_back(location(x-1, y-1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue