Fix incorrect API table name in [animate_unit] (GNA25550)
This commit is contained in:
parent
441b0f7691
commit
d84a52dc45
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ local function add_animation(anim, cfg)
|
|||
if facing then
|
||||
local facing_loc = wesnoth.get_locations(facing)[1]
|
||||
if facing_loc then
|
||||
local dir = wesnoth.map_location_ops.get_relative_dir(unit.x, unit.y, facing_loc[1], facing_loc[2])
|
||||
facing = wesnoth.map_location_ops.get_direction(unit.x, unit.y, dir)
|
||||
local dir = wesnoth.map_location.get_relative_dir(unit.x, unit.y, facing_loc[1], facing_loc[2])
|
||||
facing = wesnoth.map_location.get_direction(unit.x, unit.y, dir)
|
||||
else
|
||||
facing = nil
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue