wmllint: Only parse terrain strings if maptype==map
This commit is contained in:
parent
5735a16abf
commit
5826262023
1 changed files with 1 additions and 1 deletions
|
@ -2871,8 +2871,8 @@ def translator(filename, mapxforms, textxform):
|
|||
else:
|
||||
fields = [x for x in line]
|
||||
outmap.append(fields)
|
||||
terrain_strings = (f.split()[-1] for f in fields)
|
||||
if not maskwarn and maptype == 'map':
|
||||
terrain_strings = (f.split()[-1] for f in fields)
|
||||
if any(re.search('_s|_f(?!me)', t) for t in terrain_strings):
|
||||
print('"%s", line %d: warning, fog or shroud in map file' \
|
||||
% (filename, lineno+1))
|
||||
|
|
Loading…
Add table
Reference in a new issue