Kaynağa Gözat

fix trees were not generated

Kolja Strohm 2 ay önce
ebeveyn
işleme
9d9649e100
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      FactoryCraft/TreeTemplate.cpp

+ 1 - 0
FactoryCraft/TreeTemplate.cpp

@@ -98,6 +98,7 @@ void TreeTemplate::setMinHeight(int height)
 void TreeTemplate::setMaxHeight(int height)
 {
     maxHeight = height;
+    setMaxSize(Framework::Vec3<int>(5, 5, maxHeight));
 }
 
 int TreeTemplate::getMinHeight() const