Fix buggy water animation if texture page is a different size. There is

still a problem that the speed of the animation depends on texture size.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2920 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-12-01 12:36:22 +00:00
parent eb083a515f
commit 3ddda5a074
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ static void drawTiles(iView *camera, iView *player)
if(!gamePaused())
{
waterRealValue += (WAVE_SPEED * frameTime2) / GAME_TICKS_PER_SEC;
if(waterRealValue >= 64/2)
if (waterRealValue >= (256 / TILES_IN_PAGE_ROW) / 2)
{
waterRealValue = 0.0f;
}