diff --git a/soh/soh/Enhancements/mods.cpp b/soh/soh/Enhancements/mods.cpp index b5bc3ec3e..c5903be36 100644 --- a/soh/soh/Enhancements/mods.cpp +++ b/soh/soh/Enhancements/mods.cpp @@ -537,10 +537,10 @@ void UpdateDirtPathFixState(int32_t sceneNum) { case SCENE_SPOT00: case SCENE_SPOT04: case SCENE_SPOT15: - CVarSetInteger("gDirtPathFix", CVarGetInteger("gSceneSpecificDirtPathFix", ZFIGHT_FIX_DISABLED)); + CVarSetInteger("gZFightingMode", CVarGetInteger("gSceneSpecificDirtPathFix", ZFIGHT_FIX_DISABLED)); return; default: - CVarClear("gDirtPathFix"); + CVarClear("gZFightingMode"); } } diff --git a/soh/soh/Enhancements/presets.h b/soh/soh/Enhancements/presets.h index a89074a7d..9227205c0 100644 --- a/soh/soh/Enhancements/presets.h +++ b/soh/soh/Enhancements/presets.h @@ -206,7 +206,8 @@ const std::vector enhancementsCvars = { "gDrawLineupTick", "gQuickBongoKill", "gFPSGauntlets", - "gDirtPathFix", + "gSceneSpecificDirtPathFix", + "gZFightingMode", "gAuthenticLogo", "gPauseLiveLinkRotationSpeed", "gBowReticle", diff --git a/soh/soh/config/ConfigUpdaters.cpp b/soh/soh/config/ConfigUpdaters.cpp index f7da1cbfc..a157ab9e7 100644 --- a/soh/soh/config/ConfigUpdaters.cpp +++ b/soh/soh/config/ConfigUpdaters.cpp @@ -49,5 +49,9 @@ namespace LUS { if (conf->GetString("Game.Patches Archive", "") == "") { conf->Erase("Game.Patches Archive"); } + if (CVarGetInteger("gDirtPathFix", 0) != 0) { + CVarSetInteger("gZFightingMode", CVarGetInteger("gDirtPathFix", 0)); + CVarClear("gDirtPathFix"); + } } } \ No newline at end of file