Skip to content
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

Allow null invoker to be passed in EngFunc_PlayBackEvent (bug 6467) #358

Merged

Conversation

Arkshine
Copy link
Member

@Arkshine Arkshine commented Mar 2, 2016

This allows passing -1 (you can use FM_NULLENT) in EngFunc_PlayBackEvent for invoker to tell the module to pass a NULL invoker edict. This is allowed by the engine to use a specific origin rather than the invoker's origin.

This fix the forward as well to return -1 instead of 0 if invoker edict is null. Should be safe change.

@Arkshine Arkshine force-pushed the fix/allow-null-invoker-playbackevent branch 2 times, most recently from fd18b44 to 494444a Compare March 2, 2016 13:54
@Nextra
Copy link
Contributor

Nextra commented Mar 11, 2016

👍 and hope this doesn't go nuclear :P

Arkshine added a commit that referenced this pull request Mar 16, 2016
…event

Allow null invoker to be passed in EngFunc_PlayBackEvent (bug 6467)
@Arkshine Arkshine merged commit d4691bb into alliedmodders:master Mar 16, 2016
@Arkshine Arkshine deleted the fix/allow-null-invoker-playbackevent branch March 16, 2016 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants