projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929e115
)
Part 2 of "Check joinAllowed again before actually joining, fixes race conditions...
author
terencehill <piuntn@gmail.com>
Tue, 2 Jun 2020 15:09:36 +0000
(17:09 +0200)
committer
terencehill <piuntn@gmail.com>
Tue, 2 Jun 2020 15:09:36 +0000
(17:09 +0200)
qcsrc/server/client.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/client.qc
b/qcsrc/server/client.qc
index
af2846c
..
ce495c3
100644
(file)
--- a/
qcsrc/server/client.qc
+++ b/
qcsrc/server/client.qc
@@
-2363,7
+2363,8
@@
void SpectatorThink(entity this)
if(this.flags & FL_SPAWNING)
{
this.flags &= ~FL_SPAWNING;
- Join(this);
+ if(joinAllowed(this))
+ Join(this);
return;
}
}