]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Unzone and reset netname & model to null when removing entcs (potential fix for the...
authorMario <mario@smbclan.net>
Wed, 1 Mar 2017 15:32:46 +0000 (01:32 +1000)
committerMario <mario@smbclan.net>
Wed, 1 Mar 2017 15:32:46 +0000 (01:32 +1000)
qcsrc/common/ent_cs.qc
qcsrc/server/client.qh

index 419bbb6a15757a44f8ff102c569482dc00ff8e6a..f308530d50d7d475e020257e67503bc5606dc858 100644 (file)
@@ -154,6 +154,10 @@ MACRO_END
                int n = this.sv_entnum;
                entity e = entcs_receiver(n);
                entcs_receiver(n, NULL);
+               if (e.netname) strunzone(e.netname);
+               e.netname = string_null;
+               if (e.model) strunzone(e.model);
+               e.model = string_null;
                if (e != this) delete(e);
        }
 
index 37e5eeb94d59bf8f8b7d05b184cb9de84298af15..c2317aff0280b46179c7bc52d3d79f95913eba7f 100644 (file)
@@ -53,7 +53,7 @@ CLASS(Client, Object)
         CONSTRUCT(Client);
         this.netname = name;
         this.netaddress = "local";
-        this.playermodel = cvar_defstring("sv_defaultplayermodel");
+        this.playermodel = "models/player/megaerebus.iqm";
     }
 ENDCLASS(Client)