Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed May 22, 2018
1 parent 9d82100 commit 0022272
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions regamedll/dlls/gamerules.h
Expand Up @@ -647,7 +647,7 @@ class CHalfLifeMultiplay: public CGameRules
VFUNC void BalanceTeams();
VFUNC void SwapAllPlayers();
VFUNC void UpdateTeamScores();
VFUNC void EndRoundMessage(const char *sentence, int event);
VFUNC void EndRoundMessage(const char *sentence, ScenarioEventEndRound event);
VFUNC void SetAccountRules(RewardRules rules, int amount) { m_rgRewardAccountRules[rules] = static_cast<RewardAccount>(amount); }
VFUNC RewardAccount GetAccountRules(RewardRules rules) const { return m_rgRewardAccountRules[rules]; }

Expand Down Expand Up @@ -890,7 +890,6 @@ void SV_CareerAddTask_f();
void SV_CareerMatchLimit_f();
void Broadcast(const char *sentence);
char *GetTeam(int team);
void EndRoundMessage(const char *sentence, int event);
void DestroyMapCycle(mapcycle_t *cycle);
int ReloadMapCycleFile(char *filename, mapcycle_t *cycle);
int CountPlayers();
Expand Down
4 changes: 2 additions & 2 deletions regamedll/dlls/ggrenade.cpp
Expand Up @@ -1190,7 +1190,7 @@ CGrenade *CGrenade::__API_HOOK(ShootSatchelCharge)(entvars_t *pevOwner, VectorRe
TraceResult tr;
UTIL_TraceLine(vecStart, vecStart + Vector(0, 0, -8192), ignore_monsters, ENT(pevOwner), &tr);
pGrenade->pev->oldorigin = (tr.flFraction == 1.0) ? vecStart : tr.vecEndPos;

pGrenade->pev->nextthink = gpGlobals->time + 0.01f;
#else
pGrenade->pev->nextthink = gpGlobals->time + 0.1f;
Expand Down Expand Up @@ -1283,7 +1283,7 @@ void CGrenade::C4Think()
{
#ifdef REGAMEDLL_FIXES
pev->origin = pev->oldorigin;

if (DROP_TO_FLOOR(edict()) > 0)
{
pev->velocity = g_vecZero;
Expand Down
4 changes: 2 additions & 2 deletions regamedll/dlls/multiplay_gamerules.cpp
Expand Up @@ -155,7 +155,7 @@ char *GetTeam(int team)
}
}

void CHalfLifeMultiplay::EndRoundMessage(const char *sentence, int event)
void CHalfLifeMultiplay::EndRoundMessage(const char *sentence, ScenarioEventEndRound event)
{
char *team = nullptr;
const char *message = sentence;
Expand Down Expand Up @@ -1978,7 +1978,7 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(RestartRound)()
// Reset game variables
m_flIntermissionEndTime = 0;
m_flIntermissionStartTime = 0;
m_flRestartRoundTime = 0.0;
m_flRestartRoundTime = 0;
m_iAccountTerrorist = m_iAccountCT = 0;
m_iHostagesRescued = 0;
m_iHostagesTouched = 0;
Expand Down
6 changes: 3 additions & 3 deletions regamedll/dlls/wpn_shared/wpn_c4.cpp
Expand Up @@ -106,16 +106,16 @@ void CC4::PrimaryAttack()

int inBombZone = (m_pPlayer->m_signals.GetState() & SIGNAL_BOMB) == SIGNAL_BOMB;
int onGround = (m_pPlayer->pev->flags & FL_ONGROUND) == FL_ONGROUND;

#ifdef REGAMEDLL_FIXES
if (!onGround)
{
TraceResult tr;
UTIL_TraceLine(m_pPlayer->pev->origin, m_pPlayer->pev->origin + Vector(0, 0, -8192), ignore_monsters, m_pPlayer->edict(), &tr);
onGround = tr.flFraction != 1.0;
}
#endif
#endif

bool bPlaceBomb = (onGround && inBombZone);

if (!m_bStartedArming)
Expand Down

0 comments on commit 0022272

Please sign in to comment.