equal
deleted
inserted
replaced
1871 if waterFrames > 1 then |
1871 if waterFrames > 1 then |
1872 frame:= RealTicks div waterFrameTicks mod waterFrames |
1872 frame:= RealTicks div waterFrameTicks mod waterFrames |
1873 else |
1873 else |
1874 frame:= 0; |
1874 frame:= 0; |
1875 |
1875 |
1876 TextureBuffer[3].X:= shift + ((LongInt((RealTicks * waterSpeed) shr 6) * Dir + dX) mod spriteWidth) / (spriteWidth - 1); |
1876 TextureBuffer[3].X:= shift + ((LongInt((RealTicks * waterSpeed div 100) shr 6) * Dir + dX) mod spriteWidth) / (spriteWidth - 1); |
1877 TextureBuffer[3].Y:= frame * realHeight; |
1877 TextureBuffer[3].Y:= frame * realHeight; |
1878 TextureBuffer[5].X:= TextureBuffer[3].X + nWaves; |
1878 TextureBuffer[5].X:= TextureBuffer[3].X + nWaves; |
1879 TextureBuffer[5].Y:= frame * realHeight; |
1879 TextureBuffer[5].Y:= frame * realHeight; |
1880 TextureBuffer[4].X:= TextureBuffer[5].X; |
1880 TextureBuffer[4].X:= TextureBuffer[5].X; |
1881 TextureBuffer[4].Y:= (frame+1) * realHeight; |
1881 TextureBuffer[4].Y:= (frame+1) * realHeight; |