From: Rudolf Polzer Date: Sat, 3 Mar 2012 11:56:39 +0000 (+0100) Subject: fix variable use X-Git-Tag: xonotic-v0.6.0~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b2ac4760eab9ee92752c5deb8fb8432d37fdfc0b;p=xonotic%2Fxonotic-data.pk3dir.git fix variable use --- diff --git a/qcsrc/client/wall.qc b/qcsrc/client/wall.qc index 64f5830f4..807b260ab 100644 --- a/qcsrc/client/wall.qc +++ b/qcsrc/client/wall.qc @@ -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;