mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 14:36:22 +00:00
Fixup migration to wesnoth.map module
This commit is contained in:
parent
fd37a05ffe
commit
e4a803360d
@ -58,7 +58,7 @@ function set_terrain_impl(data)
|
||||
local d = data[i]
|
||||
local chance = d.per_thousand
|
||||
local terrains = d.terrain
|
||||
local layer = d.layer
|
||||
local layer = d.layer or 'both'
|
||||
local num_tiles = d.nlocs and math.min(#locs[i], d.nlocs) or #locs[i]
|
||||
if d.exact then
|
||||
num_tiles = math.ceil(num_tiles * chance / 1000)
|
||||
|
Loading…
x
Reference in New Issue
Block a user