// ----------------------------------------------------------------------------- void atmosSetWeatherType(WT_CLASS type) { if(type == WT_NONE) { atmosInitSystem(); } else { weather = type; } }
void atmosSetWeatherType(WT_CLASS type) { if (type != weather) { weather = type; atmosInitSystem(); } if (type == WT_NONE && asAtmosParts) { free(asAtmosParts); asAtmosParts = NULL; } }