-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scoreboard: Fixed Icons sometimes missing #1382
Conversation
Co-authored-by: ZenBre4ker <[email protected]>
The latent commit based on a suggestion by @ZenBre4ker should solve this. Are you sure you are on that commit? |
I have to test this tomorrow again, but looking at the code I don't see how this could happen |
Oh well, I should test stuff after merging suggestions. No idea why it is broken, but I will take a look. Thanks for testing! |
okay, I fixed and tested it. It works now in both cases. The problem here was that Maybe it would be an idea to add material caching to entities as well in the future, I'm not so sure though. Nevertheless, this is a discussion for the future, this fallback for non-cached icons is useful, even if we decide to add caching to entities as this is a good way to prevent issues for edge cases |
tested, couldn't find a situation that broke the scoreboard or any equipment that didn't have an attribution, LGTM |
This PR fixes the scoreboard being stuck open after an icon is missing. This PR does this in two levels
The problem
Some entities register custom projectiles (like the boomerang) that are then registered as the inflictor. This breaks our current UI as I expected that the weapon is always a real TTT weapon. The change in this PR searches for an entity with the given name class, if no weapon was found.
I'm pretty sure that it fixes the two linked issues.