]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make an unused function used
authorMario <zacjardine@y7mail.com>
Thu, 8 Oct 2015 12:08:25 +0000 (22:08 +1000)
committerMario <zacjardine@y7mail.com>
Thu, 8 Oct 2015 12:08:25 +0000 (22:08 +1000)
qcsrc/client/csqcmodel_hooks.qc

index c7e05799dbcbf37ab6f0db25f036195c8f35bf05..758411ce860b06c5fa886f4f280d83a4778fdfb5 100644 (file)
@@ -401,11 +401,7 @@ void CSQCModel_AutoTagIndex_Apply(void)
        if(self.tag_entity && wasfreed(self.tag_entity))
                self.tag_entity = world;
 
-       if(self.viewloc && wasfreed(self.viewloc))
-               self.viewloc = world;
-
-       if(self.viewloc.entnum != self.tag_networkviewloc)
-               self.viewloc = findfloat(world, entnum, self.tag_networkviewloc);
+       viewloc_SetTags();
 
        MUTATOR_CALLHOOK(TagIndex_Update, self);