Skip to content

Throw error in ShowHudText or ShowSyncHudText if HudText params not yet set#1890

Merged
psychonic merged 1 commit intomasterfrom
psy/hudtextparams-error
Dec 20, 2022
Merged

Throw error in ShowHudText or ShowSyncHudText if HudText params not yet set#1890
psychonic merged 1 commit intomasterfrom
psy/hudtextparams-error

Conversation

@psychonic
Copy link
Member

RE: #1889 (comment)

I was missing the SetHudTextParams call. Fixed now. I'm also going to add a check that could have caught this case and thrown an error.

These checks are far from perfect since one plugin can mask the error in another, but I still believe this is a net improvement.

@psychonic psychonic merged commit 515df38 into master Dec 20, 2022
@psychonic psychonic deleted the psy/hudtextparams-error branch December 20, 2022 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants