Skip to content

Commit b8f01ed

Browse files
committed
Globals: add some online debug text
1 parent 1e8b9f4 commit b8f01ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/overlay/overlay.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ void Overlay_GlobalsWindow()
6060
EVWORK_CAR* car = Game::pl_car();
6161
ImGui::Text("game_mode: %d", *Game::game_mode);
6262
ImGui::Text("current_mode: %d", *Game::current_mode);
63+
ImGui::Text("Lobby is online: %d", (*Game::SumoNet_CurNetDriver && (*Game::SumoNet_CurNetDriver)->is_online_driver()));
64+
ImGui::Text("Lobby is online host: %d", (*Game::SumoNet_CurNetDriver && (*Game::SumoNet_CurNetDriver)->is_hosting_online()));
65+
ImGui::Text("Is MP gamemode: %d", (*Game::game_mode == 3 || *Game::game_mode == 4));
6366
ImGui::Text("Car kind: %d", int(car->car_kind_11));
6467
ImGui::Text("Car position: %.3f %.3f %.3f", car->position_14.x, car->position_14.y, car->position_14.z);
6568
ImGui::Text("OnRoadPlace coli %d, stg %d, section %d",

0 commit comments

Comments
 (0)