Skip to content

Commit

Permalink
Flatten the new wind change modoption
Browse files Browse the repository at this point in the history
Let's not introduce a new subtable, would require back-compat
when modoptions are flattened after #1260.
  • Loading branch information
sprunk committed Dec 7, 2024
1 parent bf764ed commit f0b1271
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rts/Sim/Misc/ModInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,7 @@ void CModInfo::Init(const std::string& modFileName)
throw content_error("Sensors\\Los\\AirLosMipLevel out of bounds. The minimum value is 0. The maximum value is 30.");
}
{
//misc
const LuaTable& misc = root.SubTable("misc");

windChangeReportPeriod = static_cast<int>(math::roundf(misc.GetFloat("windChangeReportPeriod", static_cast<float>(windChangeReportPeriod) / GAME_SPEED) * GAME_SPEED));
windChangeReportPeriod = static_cast<int>(math::roundf(root.GetFloat("windChangeReportPeriod", static_cast<float>(windChangeReportPeriod) / GAME_SPEED) * GAME_SPEED));
}

if (!std::has_single_bit <unsigned> (quadFieldQuadSizeInElmos))
Expand Down

0 comments on commit f0b1271

Please sign in to comment.