]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make it "Gametype:" like another existing translatable string in the Serverinfo dialo...
authorterencehill <piuntn@gmail.com>
Sat, 26 Mar 2022 14:27:39 +0000 (15:27 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 26 Mar 2022 14:27:39 +0000 (15:27 +0100)
qcsrc/client/main.qc
qcsrc/common/net_linked.qh
qcsrc/server/client.qc

index 67b259c180bb9c4c1b9e6468a96e28170c7e66aa..afebfd77ef0d35c5a257ef943211f037b82e69f2 100644 (file)
@@ -1286,7 +1286,7 @@ NET_HANDLE(TE_CSQC_WEAPONCOMPLAIN, bool isNew)
        }
 }
 
-NET_HANDLE(TE_CSQC_SERVERINFO, bool isNew)
+NET_HANDLE(TE_CSQC_SERVERWELCOME, bool isNew)
 {
        bool campaign = ReadByte();
        if (campaign)
@@ -1317,7 +1317,7 @@ NET_HANDLE(TE_CSQC_SERVERINFO, bool isNew)
 
        string msg = "";
        msg = strcat(msg, ver);
-       msg = strcat(msg, "^8\n\n", sprintf(_("Game type: ^1%s"), MapInfo_Type_ToText(gametype)), "^8\n");
+       msg = strcat(msg, "^8\n\n", strcat(_("Gametype:"), " ^1", MapInfo_Type_ToText(gametype)), "^8\n");
        if(modifications != "")
                msg = strcat(msg, "^8\n", _("Active modifications:"), " ^3", modifications, "^8\n");
        if (cache_mutatormsg != "")
index 0b5923f17397af6831dd4bfb3eaecee5d149b76f..e1586c2034cd867b4a02d3e4fe995d8b3786d15a 100644 (file)
@@ -5,7 +5,7 @@ REGISTER_NET_TEMP(TE_CSQC_RACE)
 REGISTER_NET_TEMP(TE_CSQC_TEAMNAGGER)
 REGISTER_NET_TEMP(TE_CSQC_PINGPLREPORT)
 REGISTER_NET_TEMP(TE_CSQC_WEAPONCOMPLAIN)
-REGISTER_NET_TEMP(TE_CSQC_SERVERINFO)
+REGISTER_NET_TEMP(TE_CSQC_SERVERWELCOME)
 REGISTER_NET_TEMP(TE_CSQC_VEHICLESETUP)
 
 const int RACE_NET_CHECKPOINT_HIT_QUALIFYING = 0; // byte checkpoint, short time, short recordtime, string recordholder
index bafcb5266baa42c6b61bd63d73c888f9f3db1c55..68c19f638a0bfbaa4f578b7f41fde53bab809ad2 100644 (file)
@@ -1036,7 +1036,7 @@ string GetClientVersionMessage(entity this)
 void SendWelcomemessage(entity this, bool force_centerprint)
 {
        msg_entity = this;
-       WriteHeader(MSG_ONE, TE_CSQC_SERVERINFO);
+       WriteHeader(MSG_ONE, TE_CSQC_SERVERWELCOME);
        WriteByte(MSG_ONE, boolean(autocvar_g_campaign));
        if (boolean(autocvar_g_campaign))
        {