1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-02 16:30:21 +02:00

make mobs:line_of_sight() global

This commit is contained in:
TenPlus1
2018-08-08 10:33:23 +01:00
parent 477ad59670
commit dc7cdd4df0
2 changed files with 16 additions and 0 deletions

View File

@ -281,6 +281,11 @@ local line_of_sight = function(self, pos1, pos2, stepsize)
return false
end
-- global function
mobs:line_of_sight = function(self, pos1, pos2, stepsize)
return local line_of_sight = function(self, pos1, pos2, stepsize)
end
-- are we flying in what we are suppose to? (taikedz)
local flight_check = function(self, pos_w)