Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/ConsoleCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1860,8 +1860,8 @@ bool Cmd_WeatherAuto(std::span<const std::string_view> 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<const std::string_view> args, CommandContext& ctx)
{
if (ctx.weatherDirector == nullptr || ctx.time == nullptr)
Expand All @@ -1877,8 +1877,9 @@ bool Cmd_WeatherStatus(std::span<const std::string_view> args, CommandContext& c
char line[160];
std::snprintf(line,
sizeof(line),
"weather.status: %s",
std::string(EnumTraits<WeatherState>::ToString(ctx.time->GetWeather())).c_str());
"weather.status: %s intensity=%.2f",
std::string(EnumTraits<WeatherState>::ToString(ctx.time->GetWeather())).c_str(),
static_cast<double>(ctx.time->GetWeatherIntensity()));
ctx.out.Print(line);

if (ctx.weatherDirector->IsTransitioning())
Expand Down
Loading