Allow sending panels to SourceTV client via settings (#2239)

* Allow sending panels to SourceTV client via settings

* Revert "Allow sending panels to SourceTV client via settings"

This reverts commit 93bb5ebda0.

* Allow menu to be sent to sourcetv client

* Remove IsFakeClient check

Let the plugin decide who to send the menu to
This commit is contained in:
A1m` 2024-12-31 03:16:25 +07:00 committed by GitHub
parent 57bdd9fdb0
commit a44cfe134a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -419,7 +419,7 @@ bool BaseMenuStyle::DoClientMenu(int client, IMenuPanel *menu, IMenuHandler *mh,
time);
#endif
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
if (!pPlayer || pPlayer->IsFakeClient() || !pPlayer->IsInGame())
if (!pPlayer || !pPlayer->IsInGame())
{
return false;
}