36 { |
36 { |
37 TeamName = teamname; |
37 TeamName = teamname; |
38 OldTeamName = TeamName; |
38 OldTeamName = TeamName; |
39 for (int i = 0; i < 8; i++) |
39 for (int i = 0; i < 8; i++) |
40 { |
40 { |
41 Hedgehogs[i].Name.sprintf("hedgehog %d", i); |
41 Hedgehogs[i].Name = (QLineEdit::tr("hedgehog %1").arg(i+1)); |
42 Hedgehogs[i].Hat = "NoHat"; |
42 Hedgehogs[i].Hat = "NoHat"; |
43 } |
43 } |
44 Grave = "Statue"; |
44 Grave = "Statue"; |
45 Fort = "Plane"; |
45 Fort = "Plane"; |
46 Voicepack = "Default"; |
46 Voicepack = "Default"; |
123 Wins = teamfile.value("Team/Wins", 0).toInt(); |
123 Wins = teamfile.value("Team/Wins", 0).toInt(); |
124 CampaignProgress = teamfile.value("Team/CampaignProgress", 0).toInt(); |
124 CampaignProgress = teamfile.value("Team/CampaignProgress", 0).toInt(); |
125 for(int i = 0; i < 8; i++) |
125 for(int i = 0; i < 8; i++) |
126 { |
126 { |
127 QString hh = QString("Hedgehog%1/").arg(i); |
127 QString hh = QString("Hedgehog%1/").arg(i); |
128 Hedgehogs[i].Name = teamfile.value(hh + "Name", QString("hedgehog %1").arg(i)).toString(); |
128 Hedgehogs[i].Name = teamfile.value(hh + "Name", QString("hedgehog %1").arg(i+1)).toString(); |
129 Hedgehogs[i].Hat = teamfile.value(hh + "Hat", "NoHat").toString(); |
129 Hedgehogs[i].Hat = teamfile.value(hh + "Hat", "NoHat").toString(); |
130 Hedgehogs[i].Rounds = teamfile.value(hh + "Rounds", 0).toInt(); |
130 Hedgehogs[i].Rounds = teamfile.value(hh + "Rounds", 0).toInt(); |
131 Hedgehogs[i].Kills = teamfile.value(hh + "Kills", 0).toInt(); |
131 Hedgehogs[i].Kills = teamfile.value(hh + "Kills", 0).toInt(); |
132 Hedgehogs[i].Deaths = teamfile.value(hh + "Deaths", 0).toInt(); |
132 Hedgehogs[i].Deaths = teamfile.value(hh + "Deaths", 0).toInt(); |
133 Hedgehogs[i].Suicides = teamfile.value(hh + "Suicides", 0).toInt(); |
133 Hedgehogs[i].Suicides = teamfile.value(hh + "Suicides", 0).toInt(); |