Commit 79b041b6 authored by Jordon Moss's avatar Jordon Moss
Browse files

NetDuke32: Fix DukeBots mistakenly targeting dead players.

parent f642a982
......@@ -5805,7 +5805,7 @@ void computergetinput(int snum, input_t *syn)
TRAVERSE_CONNECT(otherPlayer)
{
auto pOther = g_player[otherPlayer].ps;
if (otherPlayer != snum && !(GTFLAGS(GAMETYPE_TDM) && p->team == pOther->team))
if (otherPlayer != snum && !(GTFLAGS(GAMETYPE_TDM) && p->team == pOther->team) && !pOther->dead_flag)
{
dist = ksqrt((sprite[pOther->i].x - pos1.x) * (sprite[pOther->i].x - pos1.x) + (sprite[pOther->i].y - pos1.y) * (sprite[pOther->i].y - pos1.y));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment