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:
@ -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]);
|
||||
|
Reference in New Issue
Block a user