make it relative to the difference of the colors. Means something like

Code:

if d3d_fogcolor1.red < fog_eve_r {d3d_fogcolor1.red += (abs(fog_eve_r-fog_night_r)/25)*time_step*time_speed;} //play with 25




Haven tested anything but sounds logical imao


nipx