-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GetUnitEffectiveBuildRange accepts nil unitDefID
Some tasks (in particular, feature reclaim) do not have a relevant unitDefID. In theory this means that the function should just accept a featureID, but I don't want to do this before ticket #717 is done, and also because it needs more design thought. Some of the possible questions: * what about terraform? How should the API look to request it? * could featureDefID ever be a sensible thing to request? Right now though, accepting `nil` acknowledges the existence of these edge cases without actually addressing them in full.
- Loading branch information
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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