diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/datapacker/main.cpp | 4 | ||||
| -rw-r--r-- | tools/validator/human_processor.cpp | 5 | ||||
| -rw-r--r-- | tools/validator/structs.h | 2 | ||||
| -rw-r--r-- | tools/validator/validator.cpp | 8 |
4 files changed, 3 insertions, 16 deletions
| diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index e3ab100..bda4ee4 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp | |||
| @@ -411,8 +411,8 @@ class DataPacker { | |||
| 411 | container_.FindOrAddDoor(map_name, di.name(), current_map_name)); | 411 | container_.FindOrAddDoor(map_name, di.name(), current_map_name)); |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | for (const std::string& ending_name : h_door.endings()) { | 414 | if (h_door.has_white_ending()) { |
| 415 | door.add_endings(container_.FindOrAddEnding(ending_name)); | 415 | door.set_white_ending(h_door.white_ending()); |
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | if (h_door.has_control_center_color()) { | 418 | if (h_door.has_control_center_color()) { |
| diff --git a/tools/validator/human_processor.cpp b/tools/validator/human_processor.cpp index 5a1c095..407d951 100644 --- a/tools/validator/human_processor.cpp +++ b/tools/validator/human_processor.cpp | |||
| @@ -373,11 +373,6 @@ class HumanProcessor { | |||
| 373 | DoorInfo& other_door_info = info_.doors[complete_door_identifier]; | 373 | DoorInfo& other_door_info = info_.doors[complete_door_identifier]; |
| 374 | other_door_info.doors_referenced_by.push_back(door_identifier); | 374 | other_door_info.doors_referenced_by.push_back(door_identifier); |
| 375 | } | 375 | } |
| 376 | |||
| 377 | for (const std::string& ei : h_door.endings()) { | ||
| 378 | EndingInfo& ending_info = info_.endings[ei]; | ||
| 379 | ending_info.doors_referenced_by.push_back(door_identifier); | ||
| 380 | } | ||
| 381 | } | 376 | } |
| 382 | 377 | ||
| 383 | void ProcessConnectionsFile(std::filesystem::path path, | 378 | void ProcessConnectionsFile(std::filesystem::path path, |
| diff --git a/tools/validator/structs.h b/tools/validator/structs.h index a6787cf..51215e9 100644 --- a/tools/validator/structs.h +++ b/tools/validator/structs.h | |||
| @@ -107,8 +107,6 @@ struct LetterInfo { | |||
| 107 | struct EndingInfo { | 107 | struct EndingInfo { |
| 108 | std::vector<RoomIdentifier> defined_in; | 108 | std::vector<RoomIdentifier> defined_in; |
| 109 | bool has_id = false; | 109 | bool has_id = false; |
| 110 | |||
| 111 | std::vector<DoorIdentifier> doors_referenced_by; | ||
| 112 | }; | 110 | }; |
| 113 | 111 | ||
| 114 | struct PanelNameInfo { | 112 | struct PanelNameInfo { |
| diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index 43d842d..e1fc138 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp | |||
| @@ -111,7 +111,7 @@ class Validator { | |||
| 111 | return false; | 111 | return false; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | if (h_door.keyholders_size() > 0 || h_door.endings_size() > 0 || | 114 | if (h_door.keyholders_size() > 0 || h_door.white_ending() || |
| 115 | h_door.complete_at() > 0) { | 115 | h_door.complete_at() > 0) { |
| 116 | return true; | 116 | return true; |
| 117 | } | 117 | } |
| @@ -488,12 +488,6 @@ class Validator { | |||
| 488 | std::cout << "Ending " << ending_name | 488 | std::cout << "Ending " << ending_name |
| 489 | << " has no definition, but was referenced:" << std::endl; | 489 | << " has no definition, but was referenced:" << std::endl; |
| 490 | 490 | ||
| 491 | for (const DoorIdentifier& door_identifier : | ||
| 492 | ending_info.doors_referenced_by) { | ||
| 493 | std::cout << " DOOR " << door_identifier.ShortDebugString() | ||
| 494 | << std::endl; | ||
| 495 | } | ||
| 496 | |||
| 497 | if (ending_info.has_id) { | 491 | if (ending_info.has_id) { |
| 498 | std::cout << " An AP ID is present." << std::endl; | 492 | std::cout << " An AP ID is present." << std::endl; |
| 499 | } | 493 | } |
