char sv_spawnmap[MAX_QPATH];
char sv_loadgame[MAX_OSPATH];
-dfunction_t *ED_FindFunction (char *name);
+mfunction_t *ED_FindFunction (char *name);
/*
==================
if (strcmp(host_client->name, newName) != 0)
Con_Printf ("%s renamed to %s\n", host_client->name, newName);
strcpy (host_client->name, newName);
- host_client->edict->v->netname = host_client->name - pr_strings;
+ host_client->edict->v->netname = PR_SetString(host_client->name);
// send notification to all clients
{
int top, bottom;
int playercolor;
- dfunction_t *f;
+ mfunction_t *f;
func_t SV_ChangeTeam;
if (Cmd_Argc() == 1)
if (sv.paused)
{
- SV_BroadcastPrintf ("%s paused the game\n", pr_strings + sv_player->v->netname);
+ SV_BroadcastPrintf ("%s paused the game\n", PR_GetString(sv_player->v->netname));
}
else
{
- SV_BroadcastPrintf ("%s unpaused the game\n",pr_strings + sv_player->v->netname);
+ SV_BroadcastPrintf ("%s unpaused the game\n", PR_GetString(sv_player->v->netname));
}
// send notification to all clients
client_t *client;
edict_t *ent;
func_t RestoreGame;
- dfunction_t *f;
+ mfunction_t *f;
if (cmd_source == src_command)
{
memset (ent->v, 0, progs->entityfields * 4);
ent->v->colormap = NUM_FOR_EDICT(ent);
ent->v->team = (host_client->colors & 15) + 1;
- ent->v->netname = host_client->name - pr_strings;
+ ent->v->netname = PR_SetString(host_client->name);
if ((val = GETEDICTFIELDVALUE(host_client->edict, eval_pmodel)))
val->_float = host_client->pmodel;
for (i=0 ; i<sv.num_edicts ; i++)
{
e = EDICT_NUM(i);
- if ( !strcmp (pr_strings + e->v->classname, "viewthing") )
+ if (!strcmp (PR_GetString(e->v->classname), "viewthing"))
return e;
}
Con_Printf ("No viewthing on map\n");