mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
Give is more fun on dedicated servers now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@710 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d36eac6baf
commit
ab3644ddf4
1 changed files with 17 additions and 2 deletions
|
@ -348,7 +348,14 @@ void SV_Give_f (void)
|
|||
}
|
||||
|
||||
if (!SV_SetPlayer ())
|
||||
{
|
||||
int oldself;
|
||||
oldself = pr_global_struct->self;
|
||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, sv_player);
|
||||
Con_Printf("Result: %s\n", svprogfuncs->EvaluateDebugString(svprogfuncs, Cmd_Args()));
|
||||
pr_global_struct->self = oldself;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!svprogfuncs)
|
||||
return;
|
||||
|
@ -383,7 +390,15 @@ void SV_Give_f (void)
|
|||
break;
|
||||
case 'c':
|
||||
sv_player->v.ammo_cells = v;
|
||||
break;
|
||||
break;
|
||||
default:
|
||||
{
|
||||
int oldself;
|
||||
oldself = pr_global_struct->self;
|
||||
pr_global_struct->self = EDICT_TO_PROG(svprogfuncs, sv_player);
|
||||
Con_Printf("Result: %s\n", svprogfuncs->EvaluateDebugString(svprogfuncs, Cmd_Args()));
|
||||
pr_global_struct->self = oldself;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -876,7 +891,7 @@ void SV_Status_f (void)
|
|||
Con_Printf ("cpu utilization : %3i%%\n",(int)cpu);
|
||||
Con_Printf ("avg response time: %i ms\n",(int)avg);
|
||||
Con_Printf ("packets/frame : %5.2f\n", pak); //not relevent as a limit.
|
||||
|
||||
|
||||
// min fps lat drp
|
||||
if (columns < 80)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue