From 52e4469262ef30729dd78d12de513e98519bd8ca Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Wed, 21 Jul 2021 16:27:48 +1000 Subject: [PATCH] q3compat: whitelist notsingle field and document implementation problem --- qcsrc/lib/spawnfunc.qh | 1 + qcsrc/server/compat/quake3.qc | 1 + 2 files changed, 2 insertions(+) diff --git a/qcsrc/lib/spawnfunc.qh b/qcsrc/lib/spawnfunc.qh index fc15a0285..e29939909 100644 --- a/qcsrc/lib/spawnfunc.qh +++ b/qcsrc/lib/spawnfunc.qh @@ -182,6 +182,7 @@ noref string __fullspawndata; FIELD_SCALAR(fld, noise) \ FIELD_SCALAR(fld, notcpm) \ FIELD_SCALAR(fld, notfree) \ + FIELD_SCALAR(fld, notsingle) \ FIELD_SCALAR(fld, notta) \ FIELD_SCALAR(fld, notteam) \ FIELD_SCALAR(fld, notvq3) \ diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index effbbc10c..11e41f863 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -305,6 +305,7 @@ bool DoesQ3ARemoveThisEntity(entity this) if(this.notta) return true; + // FIXME: singleplayer does not use maxclients 1 as that would prevent bots if(this.notsingle) if(maxclients == 1) return true; -- 2.39.2