]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
When "a CSQC entity changed its type" remove it from all intrusive lists it is on...
authorterencehill <piuntn@gmail.com>
Sat, 3 Apr 2021 21:18:29 +0000 (23:18 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 3 Apr 2021 21:18:29 +0000 (23:18 +0200)
qcsrc/client/main.qc

index 6978247abba8c66570587e59ef00e566b87dc28a..b6e5a87eda138daeb4558a8480e585d27498b359 100644 (file)
@@ -877,6 +877,7 @@ void CSQC_Ent_Update(entity this, bool isnew)
                {
                        LOG_INFOF("A CSQC entity changed its type! (edict: %d, server: %d, type: %d -> %d)", etof(this), this.entnum, this.enttype, t);
                        Ent_Remove(this);
+                       ONREMOVE(this);
                        clearentity(this);
                        isnew = true;
                }