double c = abox->getDoubleValue("count", 5);
int count = (int) (c + (sg_random() - 0.5) * c);
- extent = max(w*w, extent);
+ extent = std::max(w*w, extent);
for (int j = 0; j < count; j++) {
y = w * (y - 0.5) + pos[1]; // E/W
z = h * z + pos[2]; // Up/Down. pos[2] is the cloudbase
- SGVec3f newpos = SGVec3f(x, y, z);
+ //SGVec3f newpos = SGVec3f(x, y, z);
SGNewCloud cld = SGNewCloud(texture_root, cld_def);
//layer->addCloud(newpos, cld.genCloud());