]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
No empty line at start of ToS
authorFreddy <schro.sb@gmail.com>
Sat, 4 Jan 2020 18:26:40 +0000 (19:26 +0100)
committerFreddy <schro.sb@gmail.com>
Sat, 4 Jan 2020 18:35:42 +0000 (19:35 +0100)
qcsrc/menu/xonotic/dialog_multiplayer_join_ToS.qc

index 17fad1317acb2da3260b0765275f23064f8e05b8..fa6ac23b8a68b4b0018f040cda4789dc4eb7276e 100644 (file)
@@ -44,7 +44,14 @@ void AdditionalServerInfo_OnGet(entity fh, entity me, int status)
             string temp = "";
                        for (string s; (s = url_fgets(fh)); )
                        {
-                               temp = strcat(temp, "\n", s);
+                if (temp != "")
+                {
+                                   temp = strcat(temp, "\n", s);
+                }
+                else
+                {
+                    temp = s;
+                }
                        }
                        url_fclose(fh);
             me.text = strzone(temp);