]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update view location earlier, fixes observers stuck in side view
authorMario <mario@smbclan.net>
Thu, 13 Oct 2016 22:14:55 +0000 (08:14 +1000)
committerMario <mario@smbclan.net>
Thu, 13 Oct 2016 22:14:55 +0000 (08:14 +1000)
qcsrc/client/csqcmodel_hooks.qc
qcsrc/lib/csqcmodel/cl_model.qc

index 0643bb09d5b37e3bdd7b014f13964959ab837484..104465360770beaddc14298f06d2872f0d2d6d1f 100644 (file)
@@ -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)
index 7f55a3c10f13b6a62518533321513a2f3fc02196..e4e1d536aa85eb84175ec0e3350d3f14678f86ba 100644 (file)
@@ -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);