partially fix bug with line in character window
bug can still occur if you change `No fog` checkbox to false while being in character window
This commit is contained in:
parent
e124e7e899
commit
ab1a333f3a
@ -6,6 +6,7 @@
|
||||
|
||||
namespace cheat::feature
|
||||
{
|
||||
static bool _prevEnabledState = false;
|
||||
NoFog::NoFog() : Feature(),
|
||||
NFEX(f_Enabled, "No Fog", "NoFog", "Visuals", false, false)
|
||||
{
|
||||
@ -41,7 +42,11 @@ namespace cheat::feature
|
||||
|
||||
void NoFog::OnGameUpdate()
|
||||
{
|
||||
app::RenderSettings_set_fog(nullptr, !f_Enabled, nullptr);
|
||||
if (_prevEnabledState != f_Enabled)
|
||||
{
|
||||
app::RenderSettings_set_fog(nullptr, !f_Enabled, nullptr);
|
||||
_prevEnabledState = f_Enabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user