1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02: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();
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;
if (game.infocus)