1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Set alpha to 1 in 30-FPS-only mode

This is to make sure no lerping occurs in 30-FPS mode, otherwise things
might look weird. A good case that this fixes is how entities look in a
double-gotoroom (they should be completely frozen in 30-FPS mode).
This commit is contained in:
Misa 2020-05-08 09:52:14 -07:00 committed by Ethan Lee
parent 694e8f42ab
commit 18ecc00d6d

View file

@ -585,7 +585,7 @@ int main(int argc, char *argv[])
graphics.processfade(); graphics.processfade();
game.gameclock(); game.gameclock();
} }
const float alpha = static_cast<float>(accumulator) / timesteplimit; const float alpha = game.over30mode ? static_cast<float>(accumulator) / timesteplimit : 1.0f;
graphics.alpha = alpha; graphics.alpha = alpha;
if (game.infocus) if (game.infocus)