Skip to content

Commit

Permalink
fix: auto update, esp snapline not changing color
Browse files Browse the repository at this point in the history
  • Loading branch information
ALittlePatate committed Jun 13, 2024
1 parent 1b157d0 commit f9ce069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion user/features/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void DrawVisualsTab() {
ImGui::OpenPopup("playersnpop");
}
if (ImGui::BeginPopup("playersnpop")) {
ImGui::ColorPicker4("Player snaplines color", (float*)&settings::flashlight_color);
ImGui::ColorPicker4("Player snaplines color", (float*)&settings::player_snaplines_color);
ImGui::EndPopup();
}

Expand Down
3 changes: 2 additions & 1 deletion user/network/VersionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ void VersionControl::CheckForUpdate()

if (data.find("tag_name") != data.end() && data["tag_name"].is_string()) {
std::string latestTagName = data["tag_name"];
std::string latestName = data["name"];

if (strcmp(latestTagName.c_str(), current_version_tag) == 0) {
if (strcmp(latestTagName.c_str(), current_version_tag) == 0 || latestName.find("Auto") != std::string::npos) { //TOFIX
SetIsUpToDate(true);
}
else {
Expand Down

0 comments on commit f9ce069

Please # to comment.