Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jordon Moss
EDuke32-CSRefactor
Commits
79b041b6
Commit
79b041b6
authored
Jan 20, 2022
by
Jordon Moss
Browse files
NetDuke32: Fix DukeBots mistakenly targeting dead players.
parent
f642a982
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/oldmp/src/player.cpp
View file @
79b041b6
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment