Skip to content

Commit a47d558

Browse files
committed
Fix compiler warnings
1 parent ff843fe commit a47d558

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

regamedll/dlls/multiplay_gamerules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4293,7 +4293,7 @@ int CHalfLifeMultiplay::ItemShouldRespawn(CItem *pItem)
42934293
// At what time in the future may this Item respawn?
42944294
float CHalfLifeMultiplay::FlItemRespawnTime(CItem *pItem)
42954295
{
4296-
#ifdef REGAMEDLL_ADD;
4296+
#ifdef REGAMEDLL_ADD
42974297
return gpGlobals->time + item_respawn_time.value;
42984298
#else
42994299
return gpGlobals->time + ITEM_RESPAWN_TIME;

regamedll/pm_shared/pm_shared.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,8 +1902,8 @@ void EXT_FUNC __API_HOOK(PM_Duck)()
19021902
}
19031903

19041904
#ifdef REGAMEDLL_ADD
1905-
if ((pmove->iuser3 & PLAYER_PREVENT_DUCK) == PLAYER_PREVENT_DUCK // Prevent ducking if the iuser3 variable is contain PLAYER_PREVENT_DUCK
1906-
|| freezetime_duck.value == 0.0f && CSGameRules()->IsFreezePeriod()) // Prevent ducking during freezetime if the freezetime_duck cvar is 0
1905+
if ((pmove->iuser3 & PLAYER_PREVENT_DUCK) == PLAYER_PREVENT_DUCK // Prevent ducking if the iuser3 variable is contain PLAYER_PREVENT_DUCK
1906+
|| (freezetime_duck.value == 0.0f && CSGameRules()->IsFreezePeriod())) // Prevent ducking during freezetime if the freezetime_duck cvar is 0
19071907
{
19081908
// Try to unduck
19091909
if (pmove->flags & FL_DUCKING)
@@ -2458,8 +2458,8 @@ void EXT_FUNC __API_HOOK(PM_Jump)()
24582458
}
24592459

24602460
#ifdef REGAMEDLL_ADD
2461-
if ((pmove->iuser3 & PLAYER_PREVENT_JUMP) == PLAYER_PREVENT_JUMP // Prevent jumping if the iuser3 variable is contain PLAYER_PREVENT_JUMP
2462-
|| freezetime_jump.value == 0.0f && CSGameRules()->IsFreezePeriod()) // Prevent jumping during freezetime if the freezetime_jump cvar is 0
2461+
if ((pmove->iuser3 & PLAYER_PREVENT_JUMP) == PLAYER_PREVENT_JUMP // Prevent jumping if the iuser3 variable is contain PLAYER_PREVENT_JUMP
2462+
|| (freezetime_jump.value == 0.0f && CSGameRules()->IsFreezePeriod())) // Prevent jumping during freezetime if the freezetime_jump cvar is 0
24632463
{
24642464
return;
24652465
}

regamedll/public/tier0/dbg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ SpewRetval_t _SpewMessageV(SpewType_t spewType, int level, const char *pMsgForma
141141
assert(len < sizeof(szTempBuffer));
142142

143143
// Add \n for warning and assert
144-
if ((spewType == SPEW_ASSERT))
144+
if (spewType == SPEW_ASSERT)
145145
{
146146
len += Q_snprintf(&szTempBuffer[len], sizeof(szTempBuffer) - len, "\n");
147147
Plat_OutputDebugString(szTempBuffer);

0 commit comments

Comments
 (0)