* Allow saving of the autojump option.

This commit is contained in:
iProgramInCpp
2023-08-07 11:33:52 +03:00
parent 2114a57a4b
commit 8a8422f70b
2 changed files with 4 additions and 1 deletions

View File

@@ -166,6 +166,8 @@ void Options::update(const std::vector<std::string>& strings)
m_playerName = value;
else if (key == "ctrl_invertmouse")
m_bInvertMouse = readBool(value);
else if (key == "ctrl_autojump")
m_bAutoJump = readBool(value);
else if (key == "gfx_fancygraphics")
m_bFancyGraphics = readBool(value);
else if (key == "mp_server_visible_default")
@@ -185,6 +187,7 @@ std::vector<std::string> Options::getOptionStrings()
SO("mp_username", m_playerName);
SO("ctrl_invertmouse", saveBool(m_bInvertMouse));
SO("ctrl_autojump", saveBool(m_bAutoJump));
SO("gfx_fancygraphics", saveBool(m_bFancyGraphics));
SO("mp_server_visible_default", saveBool(m_bServerVisibleDefault));
SO("gfx_smoothlighting", saveBool(field_18));

View File

@@ -100,7 +100,6 @@ public:
uint8_t field_23D; // @NOTE: Third person mode?
uint8_t field_23E;
bool m_bFlyCheat;
bool m_bAutoJump;
uint8_t field_240;
uint8_t field_241;
float field_244;
@@ -108,5 +107,6 @@ public:
int field_24C;
std::string m_playerName;
bool m_bServerVisibleDefault;
bool m_bAutoJump;
};