update score status constants (#674)

* cdll_dll.h: add `SCORE_STATUS_NONE` constant

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

related to https://github.com/s1lentq/reapi/pull/214
This commit is contained in:
Nord1cWarr1or 2021-10-28 14:30:21 +03:00 committed by GitHub
parent 112326aa63
commit 2ac5bdee15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

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