Skip to content

Commit

Permalink
implement elasticity defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
xan1242 committed Feb 23, 2023
1 parent e494162 commit f3f80f3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2794,6 +2794,29 @@ void InitConfig()
elasticityValues.push_back(ep);
}
}

// set Elasticity defaults
if (elasticityValues.size() == 0)
{
ElasticityPair ep = { 0xF872A5B4, 160.0f };
elasticityValues.push_back(ep);
}
else
{
bool bSet_emsprk_line1 = false;

for (int i = 0; i < elasticityValues.size(); i++)
{
if (elasticityValues.at(i).emmitter_key == 0xF872A5B4)
bSet_emsprk_line1 = true;
}

if (!bSet_emsprk_line1)
{
ElasticityPair ep = { 0xF872A5B4, 160.0f };
elasticityValues.push_back(ep);
}
}
}

int Init()
Expand Down

0 comments on commit f3f80f3

Please sign in to comment.