QTfrontend/team.cpp
changeset 348 c91b983de18f
parent 341 184230eb4151
child 352 4665bfe25470
--- a/QTfrontend/team.cpp	Wed Jan 17 19:56:51 2007 +0000
+++ b/QTfrontend/team.cpp	Wed Jan 17 21:32:52 2007 +0000
@@ -29,9 +29,9 @@
 #include <QStringList>
 #include <QDebug>
 
-HWTeam::HWTeam(const QString & teamname) :
+HWTeam::HWTeam(const QString & teamname, bool isNet) :
   difficulty(0),
-  netTeam(false)
+  netTeam(isNet)
 {
 	TeamName = teamname;
 	OldTeamName = TeamName;
@@ -230,9 +230,9 @@
 }
 
 bool HWTeam::operator==(const HWTeam& t1) const {
-  return TeamName==t1.TeamName;
+  return TeamName==t1.TeamName && netTeam==t1.netTeam;
 }
 
 bool HWTeam::operator<(const HWTeam& t1) const {
-  return TeamName<t1.TeamName;
+  return TeamName<t1.TeamName || (netTeam < t1.netTeam); // if names are equal - test if it is net team
 }