Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turns out that commit broke TC on unit images in messages since it broke the equality check in lua_unit.cpp. Added the XBRZ IPF as part of the Lua unit portrait attribute instead. I *think* this is the proper place to do it.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 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
98ed802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion the previous way was more correct than this way. There are two other places that I can find using
big_profile()
. One of these is theunit_topic_generator
, which should probably use the scaling; the other is inunit::advance_to
when determining whether the unit has a custom portrait that should be preserved. Also, there's another place in the Lua API too, inimpl_unit_type_get
, which should probably use the scaling. Instead of just hacking it in at this one place, I suggest doing the work properly and changing the condition used here and inunit::advance_to
. In fact, it might be good to add an additional function or two explicitly to check whether there exists a portrait and whether it differs from the unit type's portrait.