]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/ent_cs.qc
Use think accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / ent_cs.qc
index 148d3883f031d436fb9acfff64fca5d496c75496..64ddc4473586143bca0a9925103bbb0ec6c9f036 100644 (file)
        {
                entity e = player.entcs = new(entcs_sender);
                e.owner = player;
-               e.think = entcs_think;
+               setthink(e, entcs_think);
                e.nextthink = time;
                Net_LinkEntity(e, false, 0, entcs_send);
                if (!IS_REAL_CLIENT(player)) return;
                                make_pure(e);
                        }
                        e.sv_entnum = n;
-                       e.think = entcs_think;
+                       setthink(e, entcs_think);
                        entcs_receiver(n, e);
                }
                else if (this && e != this)
        #undef X
                this.iflags |= IFLAG_ORIGIN;
                InterpolateOrigin_Note(this);
-               WITH(entity, self, this, this.think());
+               WITHSELF(this, getthink(this)());
                return true;
        }