QTfrontend/hedgehogerWidget.cpp
changeset 624 e7673b036db5
parent 612 333d095319de
child 883 07a568ba44e0
--- a/QTfrontend/hedgehogerWidget.cpp	Fri Oct 26 18:55:27 2007 +0000
+++ b/QTfrontend/hedgehogerWidget.cpp	Fri Nov 30 18:31:41 2007 +0000
@@ -34,20 +34,18 @@
 
 void CHedgehogerWidget::incItems() 
 {
-    if(numItems < 8 && pOurFrameTeams->overallHedgehogs<18) {
-      numItems++;
-      pOurFrameTeams->overallHedgehogs++;
-      emit hedgehogsNumChanged();
-    }
+  if (pOurFrameTeams->overallHedgehogs<18) {
+    numItems++;
+    pOurFrameTeams->overallHedgehogs++;
+    emit hedgehogsNumChanged();
+  }
 }
 
 void CHedgehogerWidget::decItems()
 {
-    if(numItems > 1) {
-      numItems--;
-      pOurFrameTeams->overallHedgehogs--;
-      emit hedgehogsNumChanged();
-    }
+  numItems--;
+  pOurFrameTeams->overallHedgehogs--;
+  emit hedgehogsNumChanged();
 }
 
 CHedgehogerWidget::~CHedgehogerWidget()