-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scoreboard: Fixed Icons sometimes missing (#1382)
This PR fixes the scoreboard being stuck open after an icon is missing. This PR does this in two levels - adding a safety check to make sure the scoreboard never stays stuck - fixing the root cause that causes the breakage in the first place ## 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. ![image](https://github.com/TTT-2/TTT2/assets/13639408/f9944de7-8995-44eb-9df8-592fffe236ba) ![image](https://github.com/TTT-2/TTT2/assets/13639408/0ac19610-d5b3-4b27-b27e-5bcae8a14c32) I'm pretty sure that it fixes the two linked issues. --------- Co-authored-by: ZenBre4ker <[email protected]>
- Loading branch information
1 parent
60ae11f
commit 55e3703
Showing
2 changed files
with
45 additions
and
6 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