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:
Ali El Gariani 2007-11-06 20:23:58 +00:00
parent 20fe89a459
commit f265b538d9

View file

@ -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));
}
}
}