1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-23 17:20:22 +01:00

make mobs:line_of_sight() function global

This commit is contained in:
TenPlus1 2018-08-08 10:35:37 +01:00
parent dc7cdd4df0
commit 77c19da8d4

View File

@ -282,8 +282,8 @@ local line_of_sight = function(self, pos1, pos2, stepsize)
end
-- global function
mobs:line_of_sight = function(self, pos1, pos2, stepsize)
return local line_of_sight = function(self, pos1, pos2, stepsize)
function mobs:line_of_sight(self, pos1, pos2, stepsize)
return line_of_sight(self, pos1, pos2, stepsize)
end