add assert in case of invalid parameters for mgen_follow state identification

This commit is contained in:
sapier 2013-02-03 23:15:20 +00:00
parent 641b72b4d4
commit ec133db0ad

View File

@ -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)