wmllint: warn about shroud terrain in map files
Just like _f (fog), _s (shroud) is allowed only inside mask files
This commit is contained in:
parent
5eadebeb3a
commit
ab95662720
1 changed files with 2 additions and 2 deletions
|
@ -2882,8 +2882,8 @@ 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:
|
||||
print('"%s", line %d: warning, fog in map file' \
|
||||
if not maskwarn and maptype == 'map' and ("_f" in line or "_s" in line):
|
||||
print('"%s", line %d: warning, fog or shroud in map file' \
|
||||
% (filename, lineno+1))
|
||||
maskwarn = True
|
||||
# Deduce the map type
|
||||
|
|
Loading…
Add table
Reference in a new issue