MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnClientDisconnected

Method OnClientDisconnected

core/MenuStyle_Base.cpp:191–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void BaseMenuStyle::OnClientDisconnected(int client)
192{
193#if defined MENU_DEBUG
194 logger->LogMessage("[SM_MENU] OnClientDisconnected(%d)", client);
195#endif
196 CBaseMenuPlayer *player = GetMenuPlayer(client);
197 if (!player->bInMenu)
198 {
199 return;
200 }
201
202 _CancelClientMenu(client, MenuCancel_Disconnected, true);
203
204 player->bInMenu = false;
205 player->bInExternMenu = false;
206}
207
208static int do_lookup[256];
209void BaseMenuStyle::ProcessWatchList()

Callers

nothing calls this directly

Calls 1

LogMessageMethod · 0.45

Tested by

no test coverage detected