]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/scores.qc
Fix custom gametype name not correctly displayed as scoreboard title and as gametype...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / scores.qc
index 5e1c8d9db567b67fd8f3635803cd6dd4266fbd25..2bdb8cdf056dc21f9a6e78a36188853bc85d6a69 100644 (file)
@@ -208,6 +208,10 @@ bool ScoreInfo_SendEntity(entity this, entity to, int sf)
        float i;
        WriteHeader(MSG_ENTITY, ENT_CLIENT_SCORES_INFO);
        WriteRegistered(Gametypes, MSG_ENTITY, MapInfo_LoadedGametype);
+       string gt_name = "";
+       if (gametype_custom_string != "")
+               gt_name = cvar_string(strcat("sv_vote_gametype_", gametype_custom_string, "_name"));
+       WriteString(MSG_ENTITY, gt_name);
        FOREACH(Scores, true, {
                WriteString(MSG_ENTITY, scores_label(it));
                WriteByte(MSG_ENTITY, scores_flags(it));