-
-
Notifications
You must be signed in to change notification settings - Fork 444
Fix issue #1170 #1172
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
Fix issue #1170 #1172
Conversation
and removed IsSoundPrecached checks for GetGameSoundParams, too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find!
I think it'll be a good idea to add a note to IsSoundPrecached warning that this function may not work correctly (always returning
true
)
Might as well do that as part of this change (and mark it as #deprecated
too).
The another comment is not needed, however.
I'm not sure what else is required here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing else is required, this all looks good.
I'll pull it when I'm at a proper computer and can merge it into 1.10 at the same time.
Alright! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, I'll go ahead and take this now
After doing some testing with a debugger, I noticed that
engsound->IsSoundPrecached(waveName)
returnstrue
, even though the sound is not precached. Because I don't have the patience to compile Sourcemod, I replaced the jnz instruction with nops and now sounds are successfully precached.For this reason, I removed
IsSoundPrecached
fromPrecacheSoundScript
andGetGameSoundParameters
I think it'll be a good idea to add a note to IsSoundPrecached warning that this function may not work correctly(always returning
true
)Fixes issue #1170