Provide a description of the KSP bug or improvement
Came across this by chance in the ksp codebase, unsure if it actually breaks things ingame.
VesselLabel.EnableAllLabels() happens to have the exact same logic as VesselLabel.DisableAllLabels(), which perhaps seems to be a typo on behalf of squad. An Enable() method for BaseLabel does exist.
private void DisableAllLabels()
{
int i = 0;
for (int count = labels.Count; i < count; i++)
{
BaseLabel baseLabel = labels[i];
if (baseLabel != null)
{
baseLabel.Disable();
}
}
}
private void EnableAllLabels()
{
int i = 0;
for (int count = labels.Count; i < count; i++)
{
BaseLabel baseLabel = labels[i];
if (baseLabel != null)
{
baseLabel.Disable();
}
}
}
Provide a description of the KSP bug or improvement
Came across this by chance in the ksp codebase, unsure if it actually breaks things ingame.
VesselLabel.EnableAllLabels()happens to have the exact same logic asVesselLabel.DisableAllLabels(), which perhaps seems to be a typo on behalf of squad. AnEnable()method for BaseLabel does exist.