X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fent_cs.qc;h=c07fad0d5242fc08dc7a9e1c26b1d79d98c6bee3;hb=070f163e1b76a4a8f1d42ba796c24584de160c5a;hp=0098dbc5ea2cf26eb63109298443850c8b2cff15;hpb=d71068b6e326bebc95f715b7861132c85fbaa73d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index 0098dbc5e..c07fad0d5 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -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); @@ -123,7 +123,7 @@ { 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) { @@ -155,7 +155,7 @@ 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);