mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 15:32:19 +03: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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user