X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qc;h=1d543af2607457e97cf3fa85338116f72a5ce864;hp=4a01f1c685841b1f361e47ce8ad49885547651be;hb=219b3f96f1ac0c597f7f1bd28a51b2dbfc9eafa8;hpb=34ce4dd900fae362a89a911eede489d2476f9c40 diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 4a01f1c68..1d543af26 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -795,7 +795,7 @@ void CSQC_Ent_Update(bool isnew) this.enttype = t; bool done = false; FOREACH(LinkedEntities, it.m_id == t, LAMBDA( - this.classname = it.netname; + if (isnew) this.classname = it.netname; if (autocvar_developer_csqcentities) LOG_INFOF("CSQC_Ent_Update(%d) at %f with this=%i {.entnum=%d, .enttype=%d} t=%s (%d)\n", isnew, savetime, this, this.entnum, this.enttype, this.classname, t); done = it.m_read(this, isnew);