Smaxx: fix water sprites rendering 0.9.12-release
authorunc0rr
Sun, 18 Oct 2009 14:47:53 +0000
changeset 2553 7d8d62a5566e
parent 2552 3cbc3d90675b
child 2554 c4eec668583d
child 2555 0862e88c12d2
child 2556 a0b542a4c515
Smaxx: fix water sprites rendering
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Sun Oct 18 14:47:24 2009 +0000
+++ b/hedgewars/uWorld.pas	Sun Oct 18 14:47:53 2009 +0000
@@ -252,7 +252,7 @@
 TextureBuffer[1].X:= TextureBuffer[0].X + waves;
 TextureBuffer[1].Y:= TextureBuffer[0].Y;
 TextureBuffer[2].X:= TextureBuffer[1].X;
-TextureBuffer[2].Y:= 1;
+TextureBuffer[2].Y:= SpritesData[sprWater].Texture^.ry;
 TextureBuffer[3].X:= TextureBuffer[0].X;
 TextureBuffer[3].Y:= TextureBuffer[2].Y;