mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 17:51:51 +00:00
wmllint: Only parse terrain strings if maptype==map
This commit is contained in:
parent
5735a16abf
commit
5826262023
@ -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…
x
Reference in New Issue
Block a user