Skip to content

Commit

Permalink
fix observers flash
Browse files Browse the repository at this point in the history
  • Loading branch information
wopox1337 committed Jun 12, 2020
1 parent 5aa7923 commit ff7ccdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion regamedll/dlls/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ void PlayerBlind(CBasePlayer *pPlayer, entvars_t *pevInflictor, entvars_t *pevAt
{
UTIL_ScreenFade(pPlayer, color, fadeTime, fadeHold, alpha, 0);

if (!fadetoblack.value)
if (!fadetoblack.value
#ifdef REGAMEDLL_ADD
|| fadetoblack.value == FADETOBLACK_AT_DYING
#endif
)
{
for (int i = 1; i <= gpGlobals->maxClients; i++)
{
Expand Down

0 comments on commit ff7ccdf

Please sign in to comment.