mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 19:22:13 +00:00
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
@ -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…
x
Reference in New Issue
Block a user