Fixed climate control error spam.

Improved climate control code readability.
Changed climate_control and sb_environment to use DEFINE_BASECLASS.