Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/game/shared/neo/neo_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3094,9 +3094,9 @@ void CNEORules::ResetJGR()
for (int i = 1; i <= gpGlobals->maxClients; ++i)
{
auto pPlayer = static_cast<CNEO_Player *>(UTIL_PlayerByIndex(i));
if (pPlayer)
if (pPlayer && pPlayer->m_iXP.Get() > 10)
{
pPlayer->m_iXP.GetForModify() = 0;
pPlayer->m_iXP.GetForModify() = 10;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could maybe use the constant XP_SERGEANT from src/game/shared/neo/neo_weapon_loadout.h

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those should probably be moved into neo_enums or something because I did not see them and they don't seem to be used inside of gamerules for xp stuff currently

}
}
}
Expand Down