ToggleOneWayNess matching

This commit is contained in:
Dethrace Labs 2025-10-09 09:13:28 +13:00
parent 4c75798d1a
commit 697bda321f
1 changed files with 3 additions and 3 deletions

View File

@ -4710,10 +4710,10 @@ void ToggleOneWayNess(void) {
if (distance > 10.f) {
NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -1, "Can't find any sections close enough");
} else {
if (gProgram_state.AI_vehicles.path_sections[section_no].one_way) {
gProgram_state.AI_vehicles.path_sections[section_no].one_way = 0;
} else {
if (!gProgram_state.AI_vehicles.path_sections[section_no].one_way) {
gProgram_state.AI_vehicles.path_sections[section_no].one_way = 1;
} else {
gProgram_state.AI_vehicles.path_sections[section_no].one_way = 0;
}
ShowOppoPaths();
if (gProgram_state.AI_vehicles.path_sections[section_no].one_way) {