hedgewars/uWorld.pas
changeset 3249 74a506c9d71b
parent 3248 8d4c61f6f30c
child 3265 5fe62296fdea
--- a/hedgewars/uWorld.pas	Fri Apr 02 08:46:57 2010 +0000
+++ b/hedgewars/uWorld.pas	Fri Apr 02 10:50:10 2010 +0000
@@ -453,8 +453,9 @@
 
 offsetY:= 10 * min(0, -145 - (WorldDy - trunc(cScreenHeight/cScaleFactor) - (cScreenHeight div 2) + cWaterLine));
 
-SkyOffset:= offsetY div 35;
-HorizontOffset:= offsetY div 55;
+//SkyOffset:= offsetY div 35 + cWaveHeight;
+HorizontOffset:= offsetY div 35 + cWaveHeight;
+SkyOffset:= HorizontOffset;
 
 // Sky
 glClear(GL_COLOR_BUFFER_BIT);