From: bones_was_here Date: Wed, 21 Jul 2021 06:27:48 +0000 (+1000) Subject: q3compat: whitelist notsingle field and document implementation problem X-Git-Tag: xonotic-v0.8.5~352^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=52e4469262ef30729dd78d12de513e98519bd8ca;p=xonotic%2Fxonotic-data.pk3dir.git q3compat: whitelist notsingle field and document implementation problem --- 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;