QTfrontend/teamselect.cpp
changeset 207 287077789132
parent 184 f97a7a3dc8f6
child 231 c77b16e48273
--- a/QTfrontend/teamselect.cpp	Fri Oct 27 14:30:36 2006 +0000
+++ b/QTfrontend/teamselect.cpp	Fri Oct 27 19:37:59 2006 +0000
@@ -20,7 +20,6 @@
 #include <QPixmap>
 #include <QPushButton>
 #include <QFrame>
-#include <QDebug>
 
 #include <vertScrollArea.h>
 #include "teamselect.h"
@@ -104,6 +103,7 @@
   for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) {
     framePlaying->removeTeam(*it);
   }
+  framePlaying->resetColors();
   curPlayingTeams.clear();
   for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) {
     frameDontPlaying->removeTeam(*it);
@@ -125,9 +125,9 @@
   return curPlayingTeams;
 }
 
-unsigned char TeamSelWidget::numHedgedogs(HWTeam team) const
+HWTeamTempParams TeamSelWidget::getTeamParams(HWTeam team) const
 {
   const TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team));
-  if(!tsw) return 0;
-  return tsw->getHedgehogsNum();
+  if(!tsw) throw;
+  return tsw->getTeamParams();
 }