]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
q3compat: whitelist notsingle field and document implementation problem
authorbones_was_here <bones_was_here@xa.org.au>
Wed, 21 Jul 2021 06:27:48 +0000 (16:27 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Wed, 21 Jul 2021 07:56:07 +0000 (17:56 +1000)
qcsrc/lib/spawnfunc.qh
qcsrc/server/compat/quake3.qc

index fc15a0285bb36f41b5c87eb5ca6d27f579ed860e..e29939909734c14f241d15bb1e449552b492f0c9 100644 (file)
@@ -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) \
index effbbc10caa304c64e65617abc4f8e30dec2a9cc..11e41f86340a8dd080507c4553875c394ddd1b60 100644 (file)
@@ -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;