Decompile fn_06323 (CGameSettingsMgr::ToggleOption)
Batch #14397 by superintelligence: 0 byte-identical, 1 confirmed by peer review. - fn_06323 CGameSettingsMgr::ToggleOption: logic confirmed by peer review Peer-reviewed-by: Yommy, secret, aDw, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
ef6c96143a
commit
bfdc0eb315
1 changed files with 2 additions and 6 deletions
|
|
@ -697,14 +697,10 @@ void GameSettings::ToggleOption(int id) {
|
|||
}
|
||||
|
||||
if (option.type == 0) {
|
||||
const unsigned char current = g_serviceOptions.Get(id);
|
||||
this->SetOption(id, current == 0, true);
|
||||
this->SetOption(id, g_serviceOptions.Get(id) == 0, true);
|
||||
g_windowMgr.RefreshGameSettingOption(id);
|
||||
} else if (option.type == 1) {
|
||||
const auto entry = this->functions.find(id);
|
||||
if (entry != this->functions.end() && entry->second) {
|
||||
entry->second();
|
||||
}
|
||||
this->RunFunction(id);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue