Skip to content
Snippets Groups Projects
Commit 24d5d323 authored by dg's avatar dg
Browse files

Actor list display wont show the player anymore

git-svn-id: http://svn.net-core.org/repos/t-engine4@3229 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9e0d4ed3
No related branches found
No related tags found
No related merge requests found
......@@ -68,11 +68,11 @@ function _M:display()
-- initialize the array
for i, act in ipairs(a.fov.actors_dist) do
if a:canSee(act) then
if a:canSee(act) and a ~= act then
local n = act.name:capitalize()
list[n] = list[n] or { name=n, nb=0, dist={} }
list[n].nb = list[n].nb + 1
list[n].dist[#list[n].dist+1] = math.floor(math.sqrt(a.fov.actors[act].sqdist))
list[n].dist[#list[n].dist+1] = math.floor(math.sqrt(a.fov.actors[act] and a.fov.actors[act].sqdist or 1))
local r = a:reactionToward(act)
if r > 0 then list[n].color={0,255,0}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment