From 57b08a23fa674897a106991ac490731c4aa6cf92 Mon Sep 17 00:00:00 2001 From: Kaki Date: Wed, 29 Dec 2021 14:24:12 +0100 Subject: [PATCH] fixing everything --- .../src/gui/window/main/tab_teleport.cpp | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/BigBaseV2/src/gui/window/main/tab_teleport.cpp b/BigBaseV2/src/gui/window/main/tab_teleport.cpp index 0148b69c..3e208f62 100644 --- a/BigBaseV2/src/gui/window/main/tab_teleport.cpp +++ b/BigBaseV2/src/gui/window/main/tab_teleport.cpp @@ -1,6 +1,7 @@ #include "main_tabs.hpp" #include "fiber_pool.hpp" #include "util/teleport.hpp" +#include namespace big { @@ -16,23 +17,16 @@ namespace big }QUEUE_JOB_END_CLAUSE } - if (ImGui::Button("Waypoint")) + if (ImGui::Button("Objective")) { QUEUE_JOB_BEGIN_CLAUSE() { - teleport::to_blip(1, 5); - teleport::to_blip(57, 5); - teleport::to_blip(128, 5); - teleport::to_blip(129, 5); - teleport::to_blip(130, 5); - teleport::to_blip(143, 5); - teleport::to_blip(144, 5); - teleport::to_blip(145, 5); - teleport::to_blip(146, 5); - teleport::to_blip(271, 5); - teleport::to_blip(286, 5); - teleport::to_blip(287, 5); - teleport::to_blip(288, 5); + std::vector blips = {1, 57, 128, 129, 130, 143, 144, 145, 146, 271, 286, 287, 288}; + for (int i = 0; i < blips.size(); i++) { + if (teleport::to_blip(blips[i], 5)) { + break; + } + } }QUEUE_JOB_END_CLAUSE }