mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-16 21:34:01 +02:00
Take COLOUR_HEAT into account in heat display limit calculation
This commit is contained in:
@@ -1388,6 +1388,8 @@ void Renderer::AdjustHdispLimit()
|
|||||||
};
|
};
|
||||||
if (std::holds_alternative<HdispLimitAuto>(wantHdispLimitMin) ||
|
if (std::holds_alternative<HdispLimitAuto>(wantHdispLimitMin) ||
|
||||||
std::holds_alternative<HdispLimitAuto>(wantHdispLimitMax))
|
std::holds_alternative<HdispLimitAuto>(wantHdispLimitMax))
|
||||||
|
{
|
||||||
|
if (colorMode & COLOUR_HEAT)
|
||||||
{
|
{
|
||||||
auto &sd = SimulationData::CRef();
|
auto &sd = SimulationData::CRef();
|
||||||
for (int i = 0; i <= sim->parts.lastActiveIndex; ++i)
|
for (int i = 0; i <= sim->parts.lastActiveIndex; ++i)
|
||||||
@@ -1404,6 +1406,7 @@ void Renderer::AdjustHdispLimit()
|
|||||||
visit({ nx, ny }, sim->parts[i].temp);
|
visit({ nx, ny }, sim->parts[i].temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (sim->aheat_enable && (displayMode & DISPLAY_AIR) && (displayMode & DISPLAY_AIRH))
|
if (sim->aheat_enable && (displayMode & DISPLAY_AIR) && (displayMode & DISPLAY_AIRH))
|
||||||
{
|
{
|
||||||
auto *hv = sim->hv;
|
auto *hv = sim->hv;
|
||||||
|
Reference in New Issue
Block a user