mirror of
https://github.com/360NENZ/Taiga74164-Akebi-GC.git
synced 2025-09-19 20:26:20 +08:00
pr #42: little refactor
This commit is contained in:
@ -388,14 +388,20 @@ namespace cheat::feature::esp::render
|
||||
return;
|
||||
|
||||
auto draw = ImGui::GetBackgroundDrawList();
|
||||
|
||||
auto& esp = ESP::GetInstance();
|
||||
if (esp.f_MiddleScreenTracer)
|
||||
{
|
||||
ImRect screen_rect = { 0.0f, 0.0f, ImGui::GetIO().DisplaySize.x, ImGui::GetIO().DisplaySize.y };
|
||||
auto screen_center = screen_rect.GetCenter();
|
||||
auto& esp = ESP::GetInstance();
|
||||
if (!esp.f_MiddleScreenTracer)
|
||||
draw->AddLine(s_AvatarPosition, *screenPos, color);
|
||||
else
|
||||
draw->AddLine(screen_center, *screenPos, color);
|
||||
}
|
||||
else
|
||||
{
|
||||
draw->AddLine(s_AvatarPosition, *screenPos, color);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#define PI 3.14159265358979323846
|
||||
|
||||
|
Reference in New Issue
Block a user