Animatedsprite ya no permite indices fuera de rango

This commit is contained in:
2022-09-25 13:00:39 +02:00
parent 66840ebf11
commit 8a4d2a541d
18 changed files with 79 additions and 71 deletions

View File

@@ -115,7 +115,7 @@ void Screen::setVideoMode(int fullScreenMode)
int scale = 0;
while (((gameCanvasWidth * (scale + 1)) <= screenWidth) && ((gameCanvasHeight * (scale + 1)) <= screenHeight))
{
++scale;
scale++;
}
dest.w = gameCanvasWidth * scale;
@@ -259,7 +259,7 @@ void Screen::updateFade()
return;
}
++fadeCounter;
fadeCounter++;
if (fadeCounter > fadeLenght)
{
iniFade();
@@ -325,7 +325,7 @@ void Screen::updateSpectrumFade()
return;
}
++spectrumFadeCounter;
spectrumFadeCounter++;
if (spectrumFadeCounter > spectrumFadeLenght)
{
iniSpectrumFade();