From 6ccbcf5990d24c39f38b6405c940642a778e4491 Mon Sep 17 00:00:00 2001 From: baaz Date: Mon, 21 Sep 2026 16:08:30 +1200 Subject: [PATCH] Add intensity to weather.status output Adds the missing intensity field to weather.status Cmd_WeatherStatus now prints weather.status: intensity=<0.00-1.00> on its first line, using ctx.time->GetWeatherIntensity() Updated the header comment and registry help string to mention intensity --- src/ConsoleCommands.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ConsoleCommands.cpp b/src/ConsoleCommands.cpp index 4a0d75f..59d4d48 100644 --- a/src/ConsoleCommands.cpp +++ b/src/ConsoleCommands.cpp @@ -1860,7 +1860,7 @@ bool Cmd_WeatherAuto(std::span args, CommandContext& ctx return true; } -// weather.status - Current weather, active transition (from->to + progress%), +// weather.status - Current weather and intensity, active transition (from->to + progress%), // auto/manual-hold flags, and the wind readout. bool Cmd_WeatherStatus(std::span args, CommandContext& ctx) { @@ -1877,8 +1877,9 @@ bool Cmd_WeatherStatus(std::span args, CommandContext& c char line[160]; std::snprintf(line, sizeof(line), - "weather.status: %s", - std::string(EnumTraits::ToString(ctx.time->GetWeather())).c_str()); + "weather.status: %s intensity=%.2f", + std::string(EnumTraits::ToString(ctx.time->GetWeather())).c_str(), + static_cast(ctx.time->GetWeatherIntensity())); ctx.out.Print(line); if (ctx.weatherDirector->IsTransitioning())