From 18ecc00d6dcb1c48f8aa61b947205b26dbf39fa9 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 8 May 2020 09:52:14 -0700 Subject: [PATCH] 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). --- desktop_version/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 639de72c..4529fb48 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -585,7 +585,7 @@ int main(int argc, char *argv[]) graphics.processfade(); game.gameclock(); } - const float alpha = static_cast(accumulator) / timesteplimit; + const float alpha = game.over30mode ? static_cast(accumulator) / timesteplimit : 1.0f; graphics.alpha = alpha; if (game.infocus)