Skip to content

Commit

Permalink
Fix wmllint confusing fake map border for fog
Browse files Browse the repository at this point in the history
According to this: https://wiki.wesnoth.org/TerrainCodeTableWML
^_fme is Fake Map Border
_f is Fog
  • Loading branch information
hexagonrecursion committed Jan 14, 2021
1 parent d0ee52e commit 73bc195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/wmllint
Expand Up @@ -2882,7 +2882,7 @@ def translator(filename, mapxforms, textxform):
else:
fields = [x for x in line]
outmap.append(fields)
if not maskwarn and maptype == 'map' and ("_f" in line or "_s" in line):
if not maskwarn and maptype == 'map' and re.search('_s|_f(?!me)', line):
print('"%s", line %d: warning, fog or shroud in map file' \
% (filename, lineno+1))
maskwarn = True
Expand Down

0 comments on commit 73bc195

Please sign in to comment.