]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/ent_cs.qc
entcs: cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / ent_cs.qc
index 0098dbc5ea2cf26eb63109298443850c8b2cff15..c07fad0d5242fc08dc7a9e1c26b1d79d98c6bee3 100644 (file)
@@ -52,7 +52,7 @@
        bool entcs_send(entity this, entity to, int sf)
        {
                entity player = this.owner;
-               sf |= 1;
+               sf |= BIT(0) | BIT(1);
                if (IS_PLAYER(to) || to.caplayer)                                  // unless spectating,
                {
                        bool same_team = (to == player) || (teamplay && player.team == to.team);
        {
                SELFPARAM();
                this.nextthink = time;
-               entity e = CSQCModel_server2csqc(this.sv_entnum + 1);
+               entity e = CSQCModel_server2csqc(this.sv_entnum);
                bool exists = e != NULL;
                if (exists)
                {
                InterpolateOrigin_Undo(this);
                int sf = ReadShort();
                this.has_sv_origin = false;
-               this.m_entcs_private = boolean(sf & 1);
+               this.m_entcs_private = boolean(sf & BIT(0));
                int i = 1;
                #define X(public, fld, sv, cl) { if (sf & BIT(i)) cl; } i += 1;
                ENTCS_NETPROPS(X);