mirror of
https://github.com/360NENZ/Taiga74164-Akebi-GC.git
synced 2025-09-19 20:26:20 +08:00
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:
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
namespace cheat::feature
|
namespace cheat::feature
|
||||||
{
|
{
|
||||||
|
static bool _prevEnabledState = false;
|
||||||
NoFog::NoFog() : Feature(),
|
NoFog::NoFog() : Feature(),
|
||||||
NFEX(f_Enabled, "No Fog", "NoFog", "Visuals", false, false)
|
NFEX(f_Enabled, "No Fog", "NoFog", "Visuals", false, false)
|
||||||
{
|
{
|
||||||
@ -40,8 +41,12 @@ namespace cheat::feature
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NoFog::OnGameUpdate()
|
void NoFog::OnGameUpdate()
|
||||||
|
{
|
||||||
|
if (_prevEnabledState != f_Enabled)
|
||||||
{
|
{
|
||||||
app::RenderSettings_set_fog(nullptr, !f_Enabled, nullptr);
|
app::RenderSettings_set_fog(nullptr, !f_Enabled, nullptr);
|
||||||
|
_prevEnabledState = f_Enabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user