Author: ilor
Date: Mon Oct 13 23:25:41 2008
New Revision: 30145
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30145&view=rev
Log:
make the editor's create-mask feature process borders
Modified:
trunk/src/editor2/editor_map.cpp
Modified: trunk/src/editor2/editor_map.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_map.cpp?rev=30145&r1=30144&r2=30145&view=diff
==============================================================================
--- trunk/src/editor2/editor_map.cpp (original)
+++ trunk/src/editor2/editor_map.cpp Mon Oct 13 23:25:41 2008
@@ -271,8 +271,8 @@
}
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);
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits