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-861f7616d084master
parent
eb083a515f
commit
3ddda5a074
|
@ -534,7 +534,7 @@ static void drawTiles(iView *camera, iView *player)
|
||||||
if(!gamePaused())
|
if(!gamePaused())
|
||||||
{
|
{
|
||||||
waterRealValue += (WAVE_SPEED * frameTime2) / GAME_TICKS_PER_SEC;
|
waterRealValue += (WAVE_SPEED * frameTime2) / GAME_TICKS_PER_SEC;
|
||||||
if(waterRealValue >= 64/2)
|
if (waterRealValue >= (256 / TILES_IN_PAGE_ROW) / 2)
|
||||||
{
|
{
|
||||||
waterRealValue = 0.0f;
|
waterRealValue = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue