diff --git a/src/ConsoleCommands.cpp b/src/ConsoleCommands.cpp index 4a0d75f..4a8a42c 100644 --- a/src/ConsoleCommands.cpp +++ b/src/ConsoleCommands.cpp @@ -1860,8 +1860,8 @@ bool Cmd_WeatherAuto(std::span args, CommandContext& ctx return true; } -// weather.status - Current weather, active transition (from->to + progress%), -// auto/manual-hold flags, and the wind readout. +// 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) { if (ctx.weatherDirector == nullptr || ctx.time == nullptr) @@ -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())