mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 210303. vehicle control hint system, virtual trainman toggle, configurable diesel engine rpm deceleration rate, vehicle repair enhancement, debug panel enhancements, customizable vehicle displays refresh rate, idling compressor sound, traction ac motor sound, braking sound enhancement, sky state enhancement, minor bug fixes
This commit is contained in:
@@ -21,9 +21,7 @@ world_environment Environment;
|
||||
} // simulation
|
||||
|
||||
void
|
||||
world_environment::toggle_daylight() {
|
||||
|
||||
Global.FakeLight = !Global.FakeLight;
|
||||
world_environment::on_daylight_change() {
|
||||
|
||||
if( Global.FakeLight ) {
|
||||
// for fake daylight enter fixed hour
|
||||
@@ -64,8 +62,10 @@ void
|
||||
world_environment::compute_weather() const {
|
||||
|
||||
Global.Weather = (
|
||||
Global.Overcast <= 0.25 ? "clear:" :
|
||||
Global.Overcast <= 1.0 ? "cloudy:" :
|
||||
Global.Overcast <= 0.10 ? "clear:" :
|
||||
Global.Overcast <= 0.50 ? "scattered:" :
|
||||
Global.Overcast <= 0.90 ? "broken:" :
|
||||
Global.Overcast <= 1.00 ? "overcast:" :
|
||||
( Global.Season != "winter:" ?
|
||||
"rain:" :
|
||||
"snow:" ) );
|
||||
|
||||
Reference in New Issue
Block a user