add assert in case of invalid parameters for mgen_follow state identification
This commit is contained in:
parent
641b72b4d4
commit
ec133db0ad
@ -47,6 +47,9 @@ mgen_follow.name = "follow_mov_gen"
|
||||
--! "unknown"
|
||||
-------------------------------------------------------------------------------
|
||||
function mgen_follow.identify_movement_state(ownpos,targetpos)
|
||||
mobf_assert_backtrace(ownpos ~= nil)
|
||||
mobf_assert_backtrace(targetpos ~= nil)
|
||||
|
||||
local same_height_delta = 0.1
|
||||
|
||||
local los = mobf_line_of_sight(ownpos,targetpos)
|
||||
|
Loading…
x
Reference in New Issue
Block a user