X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=host_cmd.c;h=3179cee269a144714d038f6c1d323e2cb736c8b8;hb=224f9edae92441767654e2c10eb568bb91f86eb1;hp=bd209df64949f1b82b94af9a16a3633772156cb4;hpb=6fb3daf04a26ac42b15c02c2276f6820ffe795a8;p=xonotic%2Fdarkplaces.git diff --git a/host_cmd.c b/host_cmd.c index bd209df6..3179cee2 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -24,7 +24,7 @@ int current_skill; char sv_spawnmap[MAX_QPATH]; char sv_loadgame[MAX_OSPATH]; -dfunction_t *ED_FindFunction (char *name); +mfunction_t *ED_FindFunction (char *name); /* ================== @@ -664,7 +664,7 @@ void Host_Name_f (void) 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 @@ -840,7 +840,7 @@ void Host_Color_f(void) { int top, bottom; int playercolor; - dfunction_t *f; + mfunction_t *f; func_t SV_ChangeTeam; if (Cmd_Argc() == 1) @@ -943,11 +943,11 @@ void Host_Pause_f (void) 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 @@ -995,7 +995,7 @@ void Host_Spawn_f (void) client_t *client; edict_t *ent; func_t RestoreGame; - dfunction_t *f; + mfunction_t *f; if (cmd_source == src_command) { @@ -1038,7 +1038,7 @@ void Host_Spawn_f (void) 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; @@ -1403,7 +1403,7 @@ edict_t *FindViewthing (void) for (i=0 ; iv->classname, "viewthing") ) + if (!strcmp (PR_GetString(e->v->classname), "viewthing")) return e; } Con_Printf ("No viewthing on map\n");