Capitalize default hog names and server name
authorWuzzy <Wuzzy2@mail.ru>
Mon, 05 Mar 2018 19:21:58 +0100
changeset 13080 23a498a2b5b8
parent 13079 81c154fd4380
child 13081 dce9f0b84a18
Capitalize default hog names and server name
QTfrontend/gameuiconfig.cpp
QTfrontend/team.cpp
--- a/QTfrontend/gameuiconfig.cpp	Mon Mar 05 19:05:10 2018 +0100
+++ b/QTfrontend/gameuiconfig.cpp	Mon Mar 05 19:21:58 2018 +0100
@@ -134,7 +134,7 @@
     netHost = new QString(value("net/ip", "").toString());
     netPort = value("net/port", NETGAME_DEFAULT_PORT).toUInt();
 
-    Form->ui.pageNetServer->leServerDescr->setText(value("net/servername", "hedgewars server").toString());
+    Form->ui.pageNetServer->leServerDescr->setText(value("net/servername", "Hedgewars Server").toString());
     Form->ui.pageNetServer->sbPort->setValue(value("net/serverport", NETGAME_DEFAULT_PORT).toUInt());
 
     Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
--- a/QTfrontend/team.cpp	Mon Mar 05 19:05:10 2018 +0100
+++ b/QTfrontend/team.cpp	Mon Mar 05 19:21:58 2018 +0100
@@ -41,7 +41,7 @@
     for (int i = 0; i < HEDGEHOGS_PER_TEAM; i++)
     {
         m_hedgehogs.append(HWHog());
-        m_hedgehogs[i].Name = (QLineEdit::tr("hedgehog %1").arg(i+1));
+        m_hedgehogs[i].Name = (QLineEdit::tr("Hedgehog %1").arg(i+1));
         m_hedgehogs[i].Hat = "NoHat";
     }
     m_grave = "Statue";
@@ -185,7 +185,7 @@
     for(int i = 0; i < HEDGEHOGS_PER_TEAM; i++)
     {
         QString hh = QString("Hedgehog%1/").arg(i);
-        m_hedgehogs[i].Name = teamfile.value(hh + "Name", QString("hedgehog %1").arg(i+1)).toString();
+        m_hedgehogs[i].Name = teamfile.value(hh + "Name", QString("Hedgehog %1").arg(i+1)).toString();
         m_hedgehogs[i].Hat = teamfile.value(hh + "Hat", "NoHat").toString();
         m_hedgehogs[i].Rounds = teamfile.value(hh + "Rounds", 0).toInt();
         m_hedgehogs[i].Kills = teamfile.value(hh + "Kills", 0).toInt();