Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5546: attached light entities now correctly coloured
Rather than rely exclusively on the possibly-inherited editor_color spawnarg, entity classes now check this spawnarg only at their own level, then recursively delegate to their parent class's getColour() method. This ensures that colour overrides (which are implemented in terms of setColour/getColour) propagate to child classes.
- Loading branch information
Matthew Mott
committed
Feb 25, 2021
1 parent
9694cb3
commit 163b154
Showing
4 changed files
with
62 additions
and
29 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
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