From: Mario Date: Thu, 13 Oct 2016 22:14:55 +0000 (+1000) Subject: Update view location earlier, fixes observers stuck in side view X-Git-Tag: xonotic-v0.8.2~515 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2a95f802d3f36e401e93fb0ea48a9baacf648b2b;p=xonotic%2Fxonotic-data.pk3dir.git Update view location earlier, fixes observers stuck in side view --- diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index 0643bb09d..104465360 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -392,8 +392,6 @@ void CSQCModel_AutoTagIndex_Apply(entity this) if(this.tag_entity && wasfreed(this.tag_entity)) this.tag_entity = NULL; - viewloc_SetTags(this); - MUTATOR_CALLHOOK(TagIndex_Update, this); if(this.tag_networkentity) diff --git a/qcsrc/lib/csqcmodel/cl_model.qc b/qcsrc/lib/csqcmodel/cl_model.qc index 7f55a3c10..e4e1d536a 100644 --- a/qcsrc/lib/csqcmodel/cl_model.qc +++ b/qcsrc/lib/csqcmodel/cl_model.qc @@ -275,6 +275,9 @@ NET_HANDLE(ENT_CLIENT_MODEL, bool isnew) this.csqcmodel_teleported = 1; } + if(sf & BIT(14)) + viewloc_SetTags(this); + CSQCModel_InterpolateAnimation_Note(this, sf); InterpolateOrigin_Note(this); CSQCPlayer_PostUpdate(this);