# HG changeset patch # User displacer # Date 1169410489 0 # Node ID 5ec611d702a0c34ce880f9a0884e6fadce1b67f4 # Parent 4665bfe2547016112ae363ed2d23d44280ff30e0 initial hedgehogs num fixed diff -r 4665bfe25470 -r 5ec611d702a0 QTfrontend/team.cpp --- a/QTfrontend/team.cpp Sun Jan 21 19:53:25 2007 +0000 +++ b/QTfrontend/team.cpp Sun Jan 21 20:14:49 2007 +0000 @@ -31,6 +31,7 @@ HWTeam::HWTeam(const QString & teamname, unsigned int netID) : difficulty(0), + numHedgehogs(4), m_netID(netID) { TeamName = teamname; @@ -45,7 +46,8 @@ } } -HWTeam::HWTeam(const QStringList& strLst) +HWTeam::HWTeam(const QStringList& strLst) : + numHedgehogs(4) { // net teams are configured from QStringList if(strLst.size()<10) throw HWTeamConstructException(); @@ -56,6 +58,7 @@ HWTeam::HWTeam(quint8 num) : difficulty(0), + numHedgehogs(4), m_netID(0) { num %= PREDEFTEAMS_COUNT; @@ -80,6 +83,7 @@ bool HWTeam::LoadFromFile() { + numHedgehogs=4; QFile cfgfile(cfgdir->absolutePath() + "/" + TeamName + ".cfg"); if (!cfgfile.open(QIODevice::ReadOnly)) return false; QTextStream stream(&cfgfile);