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
2 changes: 1 addition & 1 deletion src/game/shared/tf/tf_upgrades_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ int GetUpgradeStepData( CTFPlayer *pPlayer, int nWeaponSlot, int nUpgradeIndex,
// Early out here -- we know we're over the cap already, so just fill out and return values
// that show that.
bOverCap = true;
nCurrentStep = RoundFloatToInt( fabsf( ( flCurrentAttribValue - flBase ) / flIncrement ) );
nCurrentStep = ceilf( fabsf( ( flCurrentAttribValue - flBase ) / flIncrement ) );

return nCurrentStep; // Include the 0th step
}
Expand Down