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

Add ragdoll style overrides #876

Merged
merged 4 commits into from Nov 23, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

Add "Inited" checks

  • Loading branch information
BenCat07 committed Nov 23, 2019
commit 19ddd9335feb5e8de7e93ffc1f7b89e3ed04d67f
@@ -31,15 +31,15 @@ class ProxyFnHook
}
void setHook(RecvVarProxyFn new_fn)
{
if (hooked)
if (!prop || hooked)
return;
hooked = true;
original_fn = prop->m_ProxyFn;
prop->m_ProxyFn = new_fn;
}
void restore()
{
if (hooked)
if (prop && hooked)
{
prop->m_ProxyFn = original_fn;
hooked = false;
@@ -240,4 +240,4 @@ static InitRoutine init([]() {
EC::Register(EC::Shutdown, unhook, "ragdoll_shutdown");
});

} // namespace hacks::shared::ragdolls
} // namespace hacks::shared::ragdolls
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.