Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# About the pull request This PR fixes two issues with getFlatIcon: It failing to properly resize its template dimensions to whatever icon dimensions it was passed, and it ignoring appearance_flags for RESET_COLOR and RESET_ALPHA. This was done to address issues with #4475 but can be even more performance costly than it already was because now it applies color and alpha blends per overlay/underlay layer rather than once per recursive call if there is a color/alpha to apply. # Explain why it's good for the game Fixes the broader potential uses for getFlatIcon such as flattening the tacmap. # Testing Photographs and Procedure <details> <summary>Screenshots & Videos</summary> Example of tacmap flattened prior to dimension fixes: ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/d74dcfcf-bd13-47bb-ae04-ef6caa281bae) Example of tacmap flatted prior to color fixes: ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/81fb7d26-7c10-485b-8f5c-bc153ffbf74c) Example of tacmap properly flattened: ![image](https://github.com/cmss13-devs/cmss13/assets/76988376/0923382e-6dd5-44f6-8d72-9343784e26f1) </details> # Changelog :cl: Drathek fix: Fix getFlatIcon not resizing its template nor respect appearance_flags of RESET_COLOR and RESET_ALPHA /:cl:
- Loading branch information