mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 17:24:47 +01:00
Added force sun/thunder cheat.
This commit is contained in:
@@ -154,6 +154,17 @@ void climate_update()
|
||||
}
|
||||
}
|
||||
|
||||
void climate_force_weather(uint8 weather){
|
||||
gClimateNextWeather = 0;
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_WEATHER, sint8) = weather;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_WEATHER_GLOOM, sint8) = climate_weather_data[weather].gloom_level;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_RAIN_LEVEL, sint8) = climate_weather_data[weather].rain_level;
|
||||
_climateCurrentWeatherEffect = climate_weather_data[weather].effect_level;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CLIMATE_UPDATE_TIMER, sint16) = 1920;
|
||||
|
||||
climate_update();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates future weather development.
|
||||
|
||||
@@ -30,6 +30,15 @@ enum {
|
||||
CLIMATE_COLD
|
||||
};
|
||||
|
||||
enum{
|
||||
WEATHER_SUNNY,
|
||||
WEATHER_PARTIALLY_CLOUDY,
|
||||
WEATHER_CLOUDY,
|
||||
WEATHER_RAIN,
|
||||
WEATHER_HEAVY_RAIN,
|
||||
WEATHER_THUNDER
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
sint8 temp_delta;
|
||||
sint8 effect_level;
|
||||
@@ -49,5 +58,6 @@ int climate_celsius_to_fahrenheit(int celsius);
|
||||
void climate_reset(int climate);
|
||||
void climate_update();
|
||||
void climate_update_sound();
|
||||
void climate_force_weather(uint8 weather);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user