ShowOppoPaths matching

This commit is contained in:
Dethrace Labs 2025-10-06 12:26:58 +13:00 committed by Dethrace Engineering Department
parent 5bf52ae799
commit 15833b1f72
1 changed files with 7 additions and 7 deletions

View File

@ -4000,17 +4000,17 @@ int ConsistencyCheck(void) {
void ShowOppoPaths(void) {
char str[256];
if (!gOppo_paths_shown) {
if (gOppo_path_actor != NULL) {
gOppo_path_actor->render_style = BR_RSTYLE_NONE;
}
NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -1, "Not displaying any paths");
} else {
if (gOppo_paths_shown) {
RebuildOppoPathModel();
sprintf(str, "Total %d nodes, %d sections",
gProgram_state.AI_vehicles.number_of_path_nodes,
gProgram_state.AI_vehicles.number_of_path_sections);
NewTextHeadupSlot(eHeadupSlot_misc, 0, 1000, -1, str);
NewTextHeadupSlot(eHeadupSlot_misc, 0, 3000, -1, str);
} else {
if (gOppo_path_actor != NULL) {
gOppo_path_actor->render_style = BR_RSTYLE_NONE;
}
NewTextHeadupSlot(eHeadupSlot_misc, 0, 3000, -1, "Not displaying any paths");
}
if (ConsistencyCheck()) {
WriteOutOppoPaths();