hedgewars/uStore.pas
changeset 2292 87af4ad0ec98
parent 2290 bf87ca44782e
child 2332 351abbbb12f3
--- a/hedgewars/uStore.pas	Sat Aug 01 13:59:11 2009 +0000
+++ b/hedgewars/uStore.pas	Sat Aug 01 13:59:41 2009 +0000
@@ -291,7 +291,7 @@
 			if imageHeight = 0 then imageHeight := tmpsurf^.h;
 			if Width = 0 then Width:= tmpsurf^.w;
 			if Height = 0 then Height:= tmpsurf^.h;
-            if (ii = sprSky) or (ii = sprWater) then
+            if (ii = sprSky) then
 			    Texture:= Surface2Tex(tmpsurf, true)
             else
 			    Texture:= Surface2Tex(tmpsurf, false);
@@ -976,8 +976,6 @@
 procedure SetScale(f: GLfloat);
 begin
 cScaleFactor:= f;
-if SpritesData[sprWater].Width <> 0 then
-    cWaterSprCount:= 1 + round(cScreenWidth * 2 / cScaleFactor / SpritesData[sprWater].Width);
 
 glLoadIdentity;
 glViewport(0, 0, cScreenWidth, cScreenHeight);