1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

* choosing adventure map scroll speed

This commit is contained in:
mateuszb
2008-11-30 14:08:07 +00:00
parent c6bcd61aba
commit 00899402cc
5 changed files with 21 additions and 17 deletions

View File

@ -1206,13 +1206,13 @@ void CAdvMapInt::update()
++animValHitCount; //for animations
if(animValHitCount == 8)
{
CGI->mh->updateWater();
animValHitCount = 0;
++anim;
updateScreen = true;
}
++heroAnim;
if((animValHitCount % 4) && !LOCPLINT->showingDialog->get())
if((animValHitCount % (4/LOCPLINT->mapScrollingSpeed)) == 0 && !LOCPLINT->showingDialog->get())
{
if(scrollingLeft)
{
@ -1252,8 +1252,7 @@ void CAdvMapInt::update()
}
}
if(updateScreen)
{
CGI->mh->updateWater();
{
terrain.show();
for(int i=0;i<4;i++)
blitAt(gems[i]->ourImages[LOCPLINT->playerID].bitmap,ADVOPT.gemX[i],ADVOPT.gemY[i]);