// Game Info: Game Type
if (scoreboard_ui_enabled == 2)
str = _("Team Selection");
+ else if (gametype_custom_name != "")
+ str = gametype_custom_name;
else
str = MapInfo_Type_ToText(gametype);
draw_beginBoldFont();
localcmd("\n-button12\n");
+ strfree(gametype_custom_name);
+
deactivate_minigame();
HUD_MinigameMenu_Close(NULL, NULL, NULL);
{
make_pure(this);
gametype = ReadRegistered(Gametypes);
+ strcpy(gametype_custom_name, ReadString());
teamplay = _MapInfo_GetTeamPlayBool(gametype);
HUD_ModIcons_SetFunc();
FOREACH(Scores, true, {
bool postinit;
entity gametype;
+string gametype_custom_name;
// temporary hack
#define ISGAMETYPE(NAME) (gametype == MAPINFO_TYPE_##NAME)
{
// map vote but gametype has been chosen via voting screen
WriteByte(MSG_ENTITY, BIT(1)); // gametypevote_flags
- WriteString(MSG_ENTITY, MapInfo_Type_ToText(voted_gametype));
+ string voted_gametype_name;
+ if (voted_gametype_string == MapInfo_Type_ToString(voted_gametype))
+ voted_gametype_name = MapInfo_Type_ToText(voted_gametype);
+ else
+ voted_gametype_name = cvar_string(strcat("sv_vote_gametype_", voted_gametype_string, "_name"));
+ WriteString(MSG_ENTITY, voted_gametype_name);
}
else
WriteByte(MSG_ENTITY, 0); // map vote
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));