Merge pull request #27 from tacigar/tacigar/use-automatic_face_movement_dir

[FIX] fix get_nearest_player
This commit is contained in:
Tacigar 2016-09-15 22:02:33 +09:00 committed by GitHub
commit 5bc296c613

View File

@ -74,6 +74,7 @@ function maidroid.maidroid.get_nearest_player(self, range_distance)
local distance = vector.distance(position, player_position)
if distance < min_distance then
min_distance = distance
player = object
end
end