forked from jaildesigner-jailgames/jaildoctors_dilemma
Eliminados la mayor parte de accesos a vector mediante at()
This commit is contained in:
@@ -344,7 +344,7 @@ void Screen::renderSpectrumFade()
|
||||
const float step = (float)spectrumFadeCounter / (float)spectrumFadeLenght;
|
||||
const int max = spectrumColor.size() - 1;
|
||||
const int index = max + (0 - max) * step;
|
||||
const color_t c = spectrumColor.at(index);
|
||||
const color_t c = spectrumColor[index];
|
||||
SDL_SetTextureColorMod(gameCanvas, c.r, c.g, c.b);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user