mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
Rename gDirtPathFix to gZFightingMode (#2959)
* Rename gDirtPathFix to gZFightingMode * Add config migration
This commit is contained in:
parent
a6ecb77599
commit
90d45d4397
3 changed files with 8 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue