]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/ent_cs.qc
General cleanup/optimize
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / ent_cs.qc
index f90ddddea5742fb0f2ff4bd4ee1a3be5ed77c307..c30e52af6d628d0f25ed527a540d3354fc956f07 100644 (file)
                SELFPARAM();
                this.nextthink = time;
                entity e = CSQCModel_server2csqc(this.sv_entnum + 1);
-               bool exists = !!e;
+               bool exists = e != NULL;
                if (exists)
                {
                        this.has_origin = true;
                        this.think = entcs_think;
                        this.nextthink = time;
                }
-               InterpolateOrigin_Undo();
+               InterpolateOrigin_Undo(this);
                int sf = ReadShort();
                this.has_sv_origin = false;
                this.m_entcs_private = boolean(sf & 1);
        #undef X
                entcs_receiver[this.sv_entnum] = this;
                this.iflags |= IFLAG_ORIGIN;
-               InterpolateOrigin_Note();
+               InterpolateOrigin_Note(this);
                return true;
        }