Skip to content

Commit 26fd770

Browse files
committed
add an ETS comment
Clarify the conditions here.
1 parent a1a453a commit 26fd770

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

code/hud/hudets.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ float ets_power_factor(object *objp, bool include_power_output)
8585
constexpr float missing_single_factor = 2.0f/3;
8686
constexpr float missing_double_factor = 1.0f/3;
8787

88+
// if the properties are *equal* to just one, then it's missing double; otherwise we ruled out the all-three case so it has two and it's missing single
8889
float missing_factor = (properties == HAS_WEAPONS || properties == HAS_SHIELDS || properties == HAS_ENGINES) ? missing_double_factor : missing_single_factor;
8990

9091
if (The_mission.ai_profile->flags[AI::Profile_Flags::ETS_uses_power_output] && include_power_output)

0 commit comments

Comments
 (0)