mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 19:39:31 +00:00
make the editor's create-mask feature process borders
This commit is contained in:
parent
42fa02ba54
commit
7f3a0aab13
@ -271,8 +271,8 @@ gamemap editor_map::mask_to(const gamemap& target) const
|
||||
}
|
||||
gamemap mask(target);
|
||||
gamemap::location iter;
|
||||
for (iter.x = 0 ; iter.x < w(); ++iter.x) {
|
||||
for (iter.y = 0; iter.y < h(); ++iter.y) {
|
||||
for (iter.x = -border_size(); iter.x < w() + border_size(); ++iter.x) {
|
||||
for (iter.y = -border_size(); iter.y < h() + border_size(); ++iter.y) {
|
||||
if (target.get_terrain(iter) == get_terrain(iter)) {
|
||||
mask.set_terrain(iter, t_translation::FOGGED);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user