Fix levelshot so that it cannot be executed by remote clients (#4339)

This commit is contained in:
Thilo Schulz 2011-02-08 17:58:31 +00:00
parent be4e459148
commit d2612c8a36

View file

@ -397,6 +397,13 @@ void Cmd_LevelShot_f( gentity_t *ent ) {
return;
}
if(!ent->client->pers.localClient)
{
trap_SendServerCommand(ent-g_entities,
"print \"The levelshot command must be executed by a local client\n\"");
return;
}
BeginIntermission();
trap_SendServerCommand( ent-g_entities, "clientLevelShot" );
}