mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
Add 'special' property for modular use (#183)
This commit is contained in:
parent
7fe13c335f
commit
2d33a2b3b3
@ -50,6 +50,9 @@
|
||||
|
||||
// rankings
|
||||
"rankingmultiplier" "1.0" // rankings points multiplier. don't use for unranked styles
|
||||
|
||||
// special flags
|
||||
"special" "0" // for modular use
|
||||
}
|
||||
|
||||
"1"
|
||||
|
||||
@ -102,6 +102,7 @@ enum
|
||||
bStrafeCountS,
|
||||
bStrafeCountD,
|
||||
fRankingMultiplier,
|
||||
iSpecial,
|
||||
STYLESETTINGS_SIZE
|
||||
};
|
||||
|
||||
|
||||
@ -1034,6 +1034,7 @@ public bool LoadStyles()
|
||||
gA_StyleSettings[i][bStrafeCountS] = dStyle.GetBool("strafe_count_s", false);
|
||||
gA_StyleSettings[i][bStrafeCountD] = dStyle.GetBool("strafe_count_d", true);
|
||||
gA_StyleSettings[i][fRankingMultiplier] = dStyle.GetFloat("rankingmultiplier", 1.00);
|
||||
gA_StyleSettings[i][iSpecial] = dStyle.GetInt("special", 0);
|
||||
|
||||
if(bRegister && strlen(gS_StyleStrings[i][sChangeCommand]) > 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user