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:
Spoike 2005-01-04 08:01:03 +00:00
parent d36eac6baf
commit ab3644ddf4

View file

@ -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)
{