hedgewars/uWorld.pas
changeset 2447 08d623a494e6
parent 2434 5faa05d99241
child 2495 b6b9523e06bf
--- a/hedgewars/uWorld.pas	Wed Oct 14 22:27:51 2009 +0000
+++ b/hedgewars/uWorld.pas	Wed Oct 14 22:53:24 2009 +0000
@@ -250,11 +250,11 @@
 TextureBuffer[0].X:= shift + (( - WorldDx + (RealTicks shr 6) * Dir + dX) mod cWaveWidth) / (cWaveWidth - 1);
 TextureBuffer[0].Y:= 0;
 TextureBuffer[1].X:= TextureBuffer[0].X + waves;
-TextureBuffer[1].Y:= 0;
-TextureBuffer[2].X:= TextureBuffer[0].X + waves;
+TextureBuffer[1].Y:= TextureBuffer[0].Y;
+TextureBuffer[2].X:= TextureBuffer[1].X;
 TextureBuffer[2].Y:= 1;
 TextureBuffer[3].X:= TextureBuffer[0].X;
-TextureBuffer[3].Y:= 1;
+TextureBuffer[3].Y:= TextureBuffer[2].Y;
 
 glEnableClientState(GL_VERTEX_ARRAY);
 glEnableClientState(GL_TEXTURE_COORD_ARRAY);