Skip to content

Commit

Permalink
update score status constants (#674)
Browse files Browse the repository at this point in the history
* cdll_dll.h: add `SCORE_STATUS_NONE` constant

* player.cpp: SetScoreAttrib: add `SCORE_STATUS_NONE` constant

related to rehlds/ReAPI#214
  • Loading branch information
Nord1cWarr1or authored Oct 28, 2021
1 parent 112326a commit 2ac5bde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions regamedll/dlls/cdll_dll.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const int DEFAULT_FOV = 90; // the default field of view
#define ITEM_STATUS_NIGHTVISION BIT(0)
#define ITEM_STATUS_DEFUSER BIT(1)

#define SCORE_STATUS_NONE 0
#define SCORE_STATUS_DEAD BIT(0)
#define SCORE_STATUS_BOMB BIT(1)
#define SCORE_STATUS_VIP BIT(2)
Expand Down
2 changes: 1 addition & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5342,7 +5342,7 @@ edict_t *CBasePlayer::EntSelectSpawnPoint()

void CBasePlayer::SetScoreAttrib(CBasePlayer *dest)
{
int state = 0;
int state = SCORE_STATUS_NONE;
if (pev->deadflag != DEAD_NO)
state |= SCORE_STATUS_DEAD;

Expand Down

0 comments on commit 2ac5bde

Please sign in to comment.