You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another option to this fix could be to capitalize all targets and skip the test for IsCargoContainer(). I don't know if there even is a case where the target could be lower case.
The fix for the issue is that CargoBody.cpp needs to be changed to call GetProperName instead of GetName on the passed-in commodity type object. What's generating the lower-case names is that the default "GetName" method was changed to return the lowercase mid-sentence variant of the name, instead of a new "GetNoun" or "GetLowercaseName" method being added (in hindsight, would probably have lead to less visible bugs...)
The fix for the issue is that CargoBody.cpp needs to be changed to call GetProperName instead of GetName on the passed-in commodity type object.
Right, fixed!
What's generating the lower-case names is that the default "GetName" method was changed to return the lowercase mid-sentence variant of the name, instead of a new "GetNoun" or "GetLowercaseName" method being added (in hindsight, would probably have lead to less visible bugs...)
Yes. I've been hindsighting quite a bit over this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6464
Another option to this fix could be to capitalize all targets and skip the test for
IsCargoContainer(). I don't know if there even is a case where the target could be lower case.