UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #5555 Strength gain too low
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
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)
This issue does not have any duplicates
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.

<source lang="C++"> 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:</source>
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif