• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revisión3030657b2be1888062720b9587e9558d8fc693eb (tree)
Tiempo2022-06-06 05:31:00
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: medal icons drawn on the screen didn't fade out properly.

Cambiar Resumen

Diferencia incremental

diff -r 1aaa02baae13 -r 3030657b2be1 src/medal.cpp
--- a/src/medal.cpp Thu Jun 02 08:52:52 2022 -0400
+++ b/src/medal.cpp Sun Jun 05 16:31:00 2022 -0400
@@ -246,10 +246,7 @@
246246
247247 ULONG ulMedal = g_MedalQueue[ulPlayer][0].ulMedal;
248248 ULONG ulTick = g_MedalQueue[ulPlayer][0].ulTick;
249- LONG lAlpha = OPAQUE;
250-
251- if ( ulTick > TICRATE )
252- lAlpha = static_cast<LONG>( OPAQUE * (static_cast<float>( ulTick ) / TICRATE ));
249+ const LONG lAlpha = ulTick > TICRATE ? OPAQUE : static_cast<LONG>( OPAQUE * ( static_cast<float>( ulTick ) / TICRATE ));
253250
254251 // Get the graphic and text name from the global array.
255252 FString patchName = g_Medals[ulMedal].szLumpName;
Show on old repository browser