Skip to content

Commit

Permalink
sourcetv: enable this code again
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelIT7 committed Nov 19, 2024
1 parent 32a9b04 commit e3555c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/modules/sourcetv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ static void hook_CSteam3Server_NotifyClientDisconnect(void* pServer, CBaseClient
g_Lua->CallFunctionProtected(2, 0, true);
}

// The code below is broken? Idk why.
/*auto it = g_pPushedCHLTVClient.find(hltv->Client(0));
auto it = g_pPushedCHLTVClient.find((CHLTVClient*)pClient);
if (it != g_pPushedCHLTVClient.end())
{
g_Lua->ReferenceFree(it->second->iTableReference);
g_Lua->CreateTable();
it->second->iTableReference = g_Lua->ReferenceCreate(); // Create a new empty Lua table for the next client.
}*/
}
}

detour_CSteam3Server_NotifyClientDisconnect.GetTrampoline<Symbols::CSteam3Server_NotifyClientDisconnect>()(pServer, pClient);
Expand Down

0 comments on commit e3555c0

Please sign in to comment.