if (!sortData.spriteIdx)
sortData.spriteIdx = new SortData::SortItemList;
if (sortData.spriteIdx->size() < _cloudsprites.size()) {
- for (int i = sortData.spriteIdx->size(); i < _cloudsprites.size(); ++i)
+ for (unsigned i = sortData.spriteIdx->size(); i < (unsigned)_cloudsprites.size(); ++i)
sortData.spriteIdx->push_back(SortData::SortItem(i, 0.0f));
sortData.frameSorted = frameNumber - (sortData.skip_limit + 1);
}
return geom;
}
+#if 0
// return a random number between -n/2 and n/2, tending to 0
static float Rnd(float n) {
return n * (-0.5f + (sg_random() + sg_random()) / 2.0f);
}
+#endif
osg::ref_ptr<Geode> SGNewCloud::genCloud() {