Fix spectator bug

This commit is contained in:
Federico Cecchetto
2022-07-01 22:24:13 +02:00
parent c7296a5600
commit 51ecb9fa35
2 changed files with 31 additions and 2 deletions

View File

@ -123,6 +123,12 @@ namespace patches
const auto menu_id = atoi(params.get(1));
const auto client = &svs_clients[ent->s.entityNum];
// 13 => change class
if (menu_id == 13 && ent->client->team == game::mp::TEAM_SPECTATOR)
{
return;
}
// 32 => "end_game"
if (menu_id == 32 && client->header.remoteAddress.type != game::NA_LOOPBACK)
{