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;
@ -384,6 +391,14 @@ void SV_Give_f (void)
case 'c':
sv_player->v.ammo_cells = v;
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;
}
}
}