UFO: Alien Invasion Issue Tracker
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
enhancement_small.png
Closed Submit Patch #5555 Strength gain too low
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Description
Commit f703529262a20e92adf9d6b636ae7197362c70b1 contained a mistake; the value returned by GET_ENCUMBRANCE_PENALTY in g_match.cpp:51 was always 1. As a result, new recruits no longer got 2 strength points in their first mission when carried weight = max weight/2 but only 1 instead. src/game/g_match.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/g_match.cpp b/src/game/g_match.cpp index 6fdd792..d7e2b1b 100644 --- a/src/game/g_match.cpp +++ b/src/game/g_match.cpp @@ -47,9 +47,9 @@ static int G_GetEarnedExperience (abilityskills_t skill, Edict* ent) switch (skill) { case ABILITY_POWER: { - const float weight = chr->scoreMission->carriedWeight / WEIGHT_FACTOR / level.actualRound; + const float weight = chr->scoreMission->carriedWeight / level.actualRound; const float penalty = GET_ENCUMBRANCE_PENALTY(weight, chr->score.skills[ABILITY_POWER]); - experience = 50 * (weight / chr->score.skills[ABILITY_POWER]) / penalty; + experience = 50 * (weight / WEIGHT_FACTOR / chr->score.skills[ABILITY_POWER]) / penalty; break; } case ABILITY_ACCURACY:
Comments (1)
History
Issue basics
  • Type of issue
    Submit Patch
  • Category
    Not determined
  • Targetted for
    Not determined
  • Status
    Closed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)