QTfrontend/ui/widget/frameTeam.cpp
changeset 10401 c31276023295
parent 10108 c68cf030eded
child 11046 47a8c19ecb60
--- a/QTfrontend/ui/widget/frameTeam.cpp	Mon Aug 25 00:11:19 2014 +0400
+++ b/QTfrontend/ui/widget/frameTeam.cpp	Mon Aug 25 22:52:59 2014 +0400
@@ -28,7 +28,7 @@
 #include "DataManager.h"
 
 FrameTeams::FrameTeams(QWidget* parent) :
-    QFrame(parent), maxHedgehogsPerGame(48), overallHedgehogs(0), mainLayout(this), nonInteractive(false)
+    QFrame(parent), mainLayout(this), nonInteractive(false)
 {
     QPalette newPalette = palette();
     newPalette.setColor(QPalette::Window, QColor(0x00, 0x00, 0x00));
@@ -122,7 +122,7 @@
 
 bool FrameTeams::isFullTeams() const
 {
-    return overallHedgehogs==maxHedgehogsPerGame;
+    return teamToWidget.size() >= 8;
 }
 
 void FrameTeams::emitTeamColorChanged(const HWTeam& team)