Skip to content

Commit 644af85

Browse files
committed
more fixes
1 parent 8a1f258 commit 644af85

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/cs2fixes.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ KHook::Return<void> CS2Fixes::Hook_DispatchConCommand(ICvar* pThis, ConCommandRe
584584

585585
if (!bGagged && !bSilent && !bFlooding)
586586
{
587-
// TODO: upstream issue
588-
//KHook::CallOriginal(&ICvar::DispatchConCommand, pThis, cmdHandle, ctx, args);
587+
KHook::CallOriginal(&ICvar::DispatchConCommand, pThis, cmdHandle, ctx, args);
589588
}
590589
else if (bFlooding)
591590
{
@@ -733,7 +732,7 @@ KHook::Return<void> CS2Fixes::Hook_PostEventAbstract(IGameEventSystem* pThis, CS
733732

734733
uint64 clientMask = *(uint64*)clients & g_playerManager->GetSilenceSoundMask();
735734

736-
// TODO: upstream issue
735+
// TODO: not doing something right with params
737736
//KHook::CallOriginal(&IGameEventSystem::PostEventAbstract, pThis, nSlot, bLocalOnly, nClientCount, &clientMask, pEvent, msg, nSize, bufType);
738737

739738
msg->set_weapon_id(weapon_id);
@@ -1083,9 +1082,8 @@ KHook::Return<void> CS2Fixes::Hook_ApplyGameSettings(IServerGameDLL* pThis, KeyV
10831082

10841083
KHook::Return<void> CS2Fixes::Hook_CreateWorkshopMapGroup(IGameTypes* pThis, const char* name, const CUtlStringList& mapList)
10851084
{
1086-
// TODO: this isn't working even with recall, upstream issue?
10871085
if (g_cvarVoteManagerEnable.Get() && g_pMapVoteSystem->IsMapListLoaded())
1088-
KHook::Recall(KHook::Return<void>{KHook::Action::Ignore}, pThis, name, g_pMapVoteSystem->CreateWorkshopMapGroup());
1086+
KHook::Recall<void (IGameTypes::*)(const char*, const CUtlStringList&)>(nullptr, {KHook::Action::Ignore}, pThis, name, g_pMapVoteSystem->CreateWorkshopMapGroup());
10891087

10901088
return {KHook::Action::Ignore};
10911089
}

0 commit comments

Comments
 (0)