mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-31 07:20:14 -05:00
Rename gDirtPathFix to gZFightingMode (#2959)
* Rename gDirtPathFix to gZFightingMode * Add config migration
This commit is contained in:
parent
a6ecb77599
commit
90d45d4397
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -206,7 +206,8 @@ const std::vector<const char*> enhancementsCvars = {
|
||||
"gDrawLineupTick",
|
||||
"gQuickBongoKill",
|
||||
"gFPSGauntlets",
|
||||
"gDirtPathFix",
|
||||
"gSceneSpecificDirtPathFix",
|
||||
"gZFightingMode",
|
||||
"gAuthenticLogo",
|
||||
"gPauseLiveLinkRotationSpeed",
|
||||
"gBowReticle",
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user