2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 05:51:22 +00:00

CVar::hasDefaultValue doesn't do what I thought it did, and I wrote the darn thing

This commit is contained in:
Phillip Stephens 2021-05-30 18:10:22 -07:00
parent 9995199fbf
commit 6fb78f1add
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D

View File

@ -566,7 +566,7 @@ void ImGuiConsole::ShowConsoleVariablesWindow() {
ImGui::Text("lawl wut? Please contact a developer, your copy of Metaforce is cursed!"); ImGui::Text("lawl wut? Please contact a developer, your copy of Metaforce is cursed!");
break; break;
} }
if (ImGui::IsItemHovered() && cv->hasDefaultValue()) { if (ImGui::IsItemHovered()) {
std::string sv(cv->defaultValue()); std::string sv(cv->defaultValue());
ImGui::SetTooltip("Default: %s", sv.c_str()); ImGui::SetTooltip("Default: %s", sv.c_str());
} }