X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcsqcmodellib%2Fsv_model.qc;h=e6e4cfe43a091e3f2fd1a5efa615a8e2d6132e66;hb=58b8eafbf5e2ff9147477e115292246458c4c5eb;hp=1c214e0aba78780aabf153c2437966ca0c20b848;hpb=cb2a5a702acaf1cdad6efff7af4cc149aeeaec9e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/csqcmodellib/sv_model.qc b/qcsrc/csqcmodellib/sv_model.qc index 1c214e0ab..e6e4cfe43 100644 --- a/qcsrc/csqcmodellib/sv_model.qc +++ b/qcsrc/csqcmodellib/sv_model.qc @@ -29,6 +29,10 @@ float CSQCModel_Send(entity to, float sf) float islocalplayer = (self == to); float isnolocalplayer = (isplayer && (self != to)); + unused_float = isplayer; + unused_float = islocalplayer; + unused_float = isnolocalplayer; + WriteByte(MSG_ENTITY, ENT_CLIENT_MODEL); WriteShort(MSG_ENTITY, sf); @@ -59,6 +63,10 @@ void CSQCModel_CheckUpdate() float islocalplayer = isplayer; // we set BOTH to 1 here as we need the sendflags float isnolocalplayer = isplayer; // we set BOTH to 1 here as we need the sendflags + unused_float = isplayer; + unused_float = islocalplayer; + unused_float = isnolocalplayer; + #ifdef CSQCPLAYER_FORCE_UPDATES if(isplayer && time > self.csqcmodel_nextforcedupdate) { @@ -92,7 +100,7 @@ void CSQCModel_CheckUpdate() } #define CSQCMODEL_PROPERTY_SCALED(flag,t,r,w,f,s,mi,ma) \ { \ - t tmp = bound(mi, s * self.f, ma); \ + t tmp = bound(mi, s * self.f, ma) - mi; \ if(tmp != self.csqcmodel_##f) \ { \ self.csqcmodel_##f = tmp; \ @@ -110,6 +118,7 @@ void CSQCModel_LinkEntity() { self.SendEntity = CSQCModel_Send; self.SendFlags = 0xFFFFFF; + CSQCModel_CheckUpdate(); } void CSQCModel_UnlinkEntity()