mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-30 15:38:02 +03:00
Fix compiler warnings
This commit is contained in:
parent
ff843fe478
commit
a47d55823f
@ -4293,7 +4293,7 @@ int CHalfLifeMultiplay::ItemShouldRespawn(CItem *pItem)
|
|||||||
// At what time in the future may this Item respawn?
|
// At what time in the future may this Item respawn?
|
||||||
float CHalfLifeMultiplay::FlItemRespawnTime(CItem *pItem)
|
float CHalfLifeMultiplay::FlItemRespawnTime(CItem *pItem)
|
||||||
{
|
{
|
||||||
#ifdef REGAMEDLL_ADD;
|
#ifdef REGAMEDLL_ADD
|
||||||
return gpGlobals->time + item_respawn_time.value;
|
return gpGlobals->time + item_respawn_time.value;
|
||||||
#else
|
#else
|
||||||
return gpGlobals->time + ITEM_RESPAWN_TIME;
|
return gpGlobals->time + ITEM_RESPAWN_TIME;
|
||||||
|
@ -1902,8 +1902,8 @@ void EXT_FUNC __API_HOOK(PM_Duck)()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
if ((pmove->iuser3 & PLAYER_PREVENT_DUCK) == PLAYER_PREVENT_DUCK // Prevent ducking if the iuser3 variable is contain PLAYER_PREVENT_DUCK
|
if ((pmove->iuser3 & PLAYER_PREVENT_DUCK) == PLAYER_PREVENT_DUCK // Prevent ducking if the iuser3 variable is contain PLAYER_PREVENT_DUCK
|
||||||
|| freezetime_duck.value == 0.0f && CSGameRules()->IsFreezePeriod()) // Prevent ducking during freezetime if the freezetime_duck cvar is 0
|
|| (freezetime_duck.value == 0.0f && CSGameRules()->IsFreezePeriod())) // Prevent ducking during freezetime if the freezetime_duck cvar is 0
|
||||||
{
|
{
|
||||||
// Try to unduck
|
// Try to unduck
|
||||||
if (pmove->flags & FL_DUCKING)
|
if (pmove->flags & FL_DUCKING)
|
||||||
@ -2458,8 +2458,8 @@ void EXT_FUNC __API_HOOK(PM_Jump)()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
#ifdef REGAMEDLL_ADD
|
||||||
if ((pmove->iuser3 & PLAYER_PREVENT_JUMP) == PLAYER_PREVENT_JUMP // Prevent jumping if the iuser3 variable is contain PLAYER_PREVENT_JUMP
|
if ((pmove->iuser3 & PLAYER_PREVENT_JUMP) == PLAYER_PREVENT_JUMP // Prevent jumping if the iuser3 variable is contain PLAYER_PREVENT_JUMP
|
||||||
|| freezetime_jump.value == 0.0f && CSGameRules()->IsFreezePeriod()) // Prevent jumping during freezetime if the freezetime_jump cvar is 0
|
|| (freezetime_jump.value == 0.0f && CSGameRules()->IsFreezePeriod())) // Prevent jumping during freezetime if the freezetime_jump cvar is 0
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ SpewRetval_t _SpewMessageV(SpewType_t spewType, int level, const char *pMsgForma
|
|||||||
assert(len < sizeof(szTempBuffer));
|
assert(len < sizeof(szTempBuffer));
|
||||||
|
|
||||||
// Add \n for warning and assert
|
// Add \n for warning and assert
|
||||||
if ((spewType == SPEW_ASSERT))
|
if (spewType == SPEW_ASSERT)
|
||||||
{
|
{
|
||||||
len += Q_snprintf(&szTempBuffer[len], sizeof(szTempBuffer) - len, "\n");
|
len += Q_snprintf(&szTempBuffer[len], sizeof(szTempBuffer) - len, "\n");
|
||||||
Plat_OutputDebugString(szTempBuffer);
|
Plat_OutputDebugString(szTempBuffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user