From 0f35eb9caa82d628f4236b4990bd60255222bcfd Mon Sep 17 00:00:00 2001 From: Dregu Date: Tue, 3 Sep 2024 10:04:48 +0300 Subject: [PATCH] Use actual kangaroo tile instead of uv for roo logic --- ui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui.cpp b/ui.cpp index ecec0fa..8138b3c 100644 --- a/ui.cpp +++ b/ui.cpp @@ -862,7 +862,7 @@ void UI::DrawPlayer() { } } if (warp_room.x == 0) { - auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter); + auto tile = GetNthTile(86, Max::get().kangaroo()->next_encounter); if (tile.has_value()) { warp_room = tile.value().room; warp_pos = {8, 104}; @@ -1058,7 +1058,7 @@ void UI::DrawPlayer() { } } { - auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter); + auto tile = GetNthTile(86, Max::get().kangaroo()->next_encounter); if (tile.has_value()) { ImGui::LabelText("Next room##NextKangarooEncounter", "%d,%d", tile.value().room.x, tile.value().room.y); @@ -1597,12 +1597,12 @@ void UI::DrawMinimap() { } if (options["map_kangaroo"].value) { - auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter); + auto tile = GetNthTile(86, Max::get().kangaroo()->next_encounter); if (tile.has_value()) { auto px = tile.value().room.x * roomsize.x + tile.value().pos.x / 40.f * roomsize.x - 4.0f; auto py = tile.value().room.y * roomsize.y + - tile.value().pos.y / 22.f * roomsize.y - 8.0f; + tile.value().pos.y / 22.f * roomsize.y - 4.0f; ImGui::GetWindowDrawList()->AddText( ImVec2(a.x + d.x + px - c.x - bordersize.x, a.y + d.y + py - c.y - bordersize.y),