--- a/QTfrontend/team.cpp Sun Aug 31 18:36:26 2008 +0000
+++ b/QTfrontend/team.cpp Sun Aug 31 19:23:29 2008 +0000
@@ -52,14 +52,18 @@
HWTeam::HWTeam(const QStringList& strLst) :
numHedgehogs(4)
{
- // net teams are configured from QStringList
- if(strLst.size() < 14) throw HWTeamConstructException();
- TeamName=strLst[0];
- m_netID=strLst[1].toUInt();
- Grave=strLst[2];
- Fort=strLst[3];
- difficulty=strLst[4].toUInt();
- for(int i = 0; i < 8; i++) HHName[i]=strLst[i+5];
+ // net teams are configured from QStringList
+ if(strLst.size() < 21) throw HWTeamConstructException();
+ TeamName=strLst[0];
+ m_netID=strLst[1].toUInt();
+ Grave=strLst[2];
+ Fort=strLst[3];
+ difficulty=strLst[4].toUInt();
+ for(int i = 0; i < 8; i++)
+ {
+ HHName[i]=strLst[i * 2 + 5];
+ HHHat[i]=strLst[i * 2 + 6];
+ }
}
HWTeam::HWTeam(quint8 num) :