mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
add const keyword
This commit is contained in:
@@ -1483,7 +1483,7 @@ void CalculateTrackerRange()
|
||||
if ( gusSelectedSoldier == NOBODY || !GetSoldier(&pSoldier, gusSelectedSoldier) || !pSoldier->bInSector )
|
||||
return;
|
||||
|
||||
FLOAT trackerskill = (FLOAT)(NUM_SKILL_TRAITS(pSoldier, SURVIVAL_NT) * gSkillTraitValues.usSVTrackerAbility + pSoldier->GetBackgroundValue(BG_TRACKER_ABILITY)) / 100.0f;
|
||||
const FLOAT trackerskill = (FLOAT)(NUM_SKILL_TRAITS(pSoldier, SURVIVAL_NT) * gSkillTraitValues.usSVTrackerAbility + pSoldier->GetBackgroundValue(BG_TRACKER_ABILITY)) / 100.0f;
|
||||
|
||||
if ( trackerskill < 0.01f )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user