ai_helper.lua: fix a typo
This commit is contained in:
parent
cadb233d6c
commit
51e4b56a1e
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ end
|
|||
function ai_helper.clear_labels()
|
||||
-- Clear all labels on a map
|
||||
for x, y in wesnoth.current.map:iter(true) do
|
||||
M.add_labels { x = x, y = y, text = "" }
|
||||
M.add_label { x = x, y = y, text = "" }
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -111,7 +111,7 @@ function ai_helper.put_labels(map, cfg)
|
|||
end
|
||||
|
||||
if (type(out) == 'number') then out = out * factor end
|
||||
M.add_labels { x = x, y = y, text = out, color = cfg.color }
|
||||
M.add_label { x = x, y = y, text = out, color = cfg.color }
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue