Skip to content

Commit

Permalink
Revert message gmsgForceCam changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Jun 12, 2020
1 parent 3a3da4b commit 0202ad4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2364,11 +2364,7 @@ void CHalfLifeMultiplay::Think()
MESSAGE_BEGIN(MSG_ALL, gmsgForceCam);
WRITE_BYTE(forcecamera.value != 0);
WRITE_BYTE(forcechasecam.value != 0);
#ifndef REGAMEDLL_ADD
WRITE_BYTE(fadetoblack.value != 0);
#else
WRITE_BYTE(fadetoblack.value == FADETOBLACK_STAY);
#endif
MESSAGE_END();

m_flForceCameraValue = forcecamera.value;
Expand Down Expand Up @@ -3381,11 +3377,7 @@ void CHalfLifeMultiplay::InitHUD(CBasePlayer *pl)
MESSAGE_BEGIN(MSG_ONE, gmsgForceCam, nullptr, pl->edict());
WRITE_BYTE(forcecamera.value != 0);
WRITE_BYTE(forcechasecam.value != 0);
#ifndef REGAMEDLL_ADD
WRITE_BYTE(fadetoblack.value != 0);
#else
WRITE_BYTE(fadetoblack.value == FADETOBLACK_STAY);
#endif
MESSAGE_END();

if (m_bGameOver)
Expand Down

0 comments on commit 0202ad4

Please sign in to comment.