Skip to content

Commit

Permalink
output: fix fade speed
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Apr 26, 2024
1 parent 1651b79 commit fefde87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,8 @@ void Output_AnimateFades(void)
return;
}

double delta = 5.0 * Clock_GetElapsedDrawFrames(&m_FadeTimer);
double delta = 5.0 * Clock_GetFrameAdvance()
* Clock_GetElapsedDrawFrames(&m_FadeTimer);
// make title screen fades faster
if (Phase_Get() == PHASE_INVENTORY && g_InvMode == INV_TITLE_MODE) {
delta *= 2.0;
Expand Down

0 comments on commit fefde87

Please sign in to comment.