* make positions of both sky and horizon dependent on the most remote waterwave by adjusting Palewolf's offset values
--- 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);