]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix variable use
authorRudolf Polzer <divverent@alientrap.org>
Sat, 3 Mar 2012 11:56:39 +0000 (12:56 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 3 Mar 2012 11:56:39 +0000 (12:56 +0100)
qcsrc/client/wall.qc

index 64f5830f4c57322c8bc89bd796afa50d9f9883d0..807b260ab2131eb57627aa564505898fdf9a50da 100644 (file)
@@ -7,7 +7,6 @@
 void Ent_Wall_Draw()
 {
        float f;
-       float d;
        var .vector fld;
 
        if(self.bgmscriptangular)
@@ -29,7 +28,7 @@ void Ent_Wall_Draw()
                else
                {
                        float distance = vlen(NearestPointOnBox(self, view_origin) - view_origin);
-                       float f = (distance * current_viewzoom + 100.0) * autocvar_cl_modeldetailreduction;
+                       f = (distance * current_viewzoom + 100.0) * autocvar_cl_modeldetailreduction;
                        f *= 1.0 / bound(0.01, view_quality, 1);
                        if(self.lodmodelindex2 && f > self.loddistance2)
                                self.modelindex = self.lodmodelindex2;