char sound_name[MAX_SOUNDS][MAX_QPATH];
// for display on solo scoreboard
- char worldmessage[40]; // map title (not related to filename)
+ char worldmessage[MAX_QPATH]; // map title (not related to filename)
// variants of map name
char worldbasename[MAX_QPATH]; // %s
char worldname[MAX_QPATH]; // maps/%s.bsp
Sbar_DrawString(8+22*8, 4, va(vabuf, sizeof(vabuf), "Secrets:%3i", cl.stats[STAT_SECRETS]));
// format is like this: e1m1:The Sligpate Complex
- dpsnprintf(str, sizeof(str), "%s:%s", cl.worldbasename, cl.worldmessage);
+ dpsnprintf(str, sizeof(str), "%s:%.39s", cl.worldbasename, cl.worldmessage);
// if there's a newline character, terminate the string there
if (strchr(str, '\n'))
/// map name
char name[64]; // %s followed by entrance name
// variants of map name
- char worldmessage[40]; // map title (not related to filename)
char worldbasename[MAX_QPATH]; // %s
char worldname[MAX_QPATH]; // maps/%s.bsp
char worldnamenoextension[MAX_QPATH]; // maps/%s
}
}
- // update the map title cvar
- dp_strlcpy(sv.worldmessage, PRVM_GetString(prog, PRVM_serveredictstring(prog->edicts, message)), sizeof(sv.worldmessage)); // map title (not related to filename)
- Cvar_SetQuick(&sv_worldmessage, sv.worldmessage);
+ // update the map title cvar (not related to filename)
+ Cvar_SetQuick(&sv_worldmessage, PRVM_GetString(prog, PRVM_serveredictstring(prog->edicts, message)));
Con_Printf("Server spawned.\n");
NetConn_Heartbeat (2);