Skip to content

Commit ac71137

Browse files
committed
Overlay: show track section number
1 parent 8d161a9 commit ac71137

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/hooks_drawdistance.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
std::array<std::vector<uint16_t>, 256> ObjectNodes;
1010
std::array<std::array<std::bitset<16384>, 256>, 128> ObjectExclusionsPerStage;
1111
int NumObjects = 0;
12+
int CsLengthNum = 0;
1213

1314
bool DrawDistanceIncreaseEnabled = false;
1415
bool EnablePauseMenu = true;
@@ -80,10 +81,10 @@ void Overlay_DrawDistOverlay()
8081
if (ImGui::Button(">>>"))
8182
Settings::DrawDistanceIncrease += 10;
8283

84+
ImGui::Text("Nodes at distance +%d (track section #%d):", Settings::DrawDistanceIncrease, (CsLengthNum + Settings::DrawDistanceIncrease));
85+
8386
if (num_columns > 0)
8487
{
85-
ImGui::Text("Nodes at DrawDistance %d:", Settings::DrawDistanceIncrease);
86-
8788
num_columns += 1;
8889
if (ImGui::BeginTable("NodeTable", num_columns, table_flags))
8990
{
@@ -381,7 +382,7 @@ class DrawDistanceIncrease : public Hook
381382
int a5 = ctx.edx;
382383

383384
int CsMaxLength = Game::GetMaxCsLen(0);
384-
int CsLengthNum = ctx.ebp;
385+
CsLengthNum = ctx.ebp;
385386

386387
int v6 = ctx.ebx;
387388
uint32_t* v11 = (uint32_t*)(v6 + 8);

0 commit comments

Comments
 (0)