case VG_BLEND_SRC_OVER: default:
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- if (alphaIsOne) glDisable(GL_BLEND);
- else glEnable(GL_BLEND); break;
+ if (alphaIsOne) {
+ glDisable(GL_BLEND);
+ } else {
+ glEnable(GL_BLEND);
+ }
+ break;
};
}
weather = pre + weather + post;
weather.erase(weather.length() - 1);
_weather.push_back(weather);
- if( ! w.phenomena.empty() )
+ if( ! w.phenomena.empty() ) {
_weather2.push_back( w );
- _grpcount++;
- return true;
+ }
+ _grpcount++;
+ return true;
}
CatalogList toRefresh;
CatalogDict::iterator it = d->catalogs.begin();
for (; it != d->catalogs.end(); ++it) {
- int age = it->second->ageInSeconds();
+ unsigned int age = it->second->ageInSeconds();
if (aForce || (age > maxAgeSeconds())) {
toRefresh.push_back(it->second);
}
void SGSoundSample::free_data()
{
- if ( _data != NULL ) free( _data ); _data = NULL;
+ if ( _data != NULL ) {
+ free( _data );
+ }
+ _data = NULL;
}