Skip to content

Commit

Permalink
Fix issue with map generation occasionally failing
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Aug 27, 2017
1 parent 9cffcff commit b0bf38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/cave_map_generator.lua
Expand Up @@ -50,7 +50,7 @@ function callbacks.generate_map(params)
for elem in tile_op.convert_to_bridge:gmatch("[^%s,][^,]*") do
table.insert(bridges, elem)
end
local dir = wesnoth.map_location.get_relative_dir(from_x, from_y, to_x, to_y)
local dir = wesnoth.map.get_relative_dir(from_x, from_y, to_x, to_y)
if dir == 'n' or dir == 's' then
map:set_tile(to_x, to_y, bridges[1])
elseif dir == 'sw' or dir == 'ne' then
Expand Down

0 comments on commit b0bf38a

Please sign in to comment.