summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/datapacker/main.cpp4
-rw-r--r--tools/validator/validator.cpp9
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/datapacker/main.cpp b/tools/datapacker/main.cpp index cc83ca1..4923fce 100644 --- a/tools/datapacker/main.cpp +++ b/tools/datapacker/main.cpp
@@ -406,6 +406,10 @@ class DataPacker {
406 if (h_door.has_location_name()) { 406 if (h_door.has_location_name()) {
407 door.set_location_name(h_door.location_name()); 407 door.set_location_name(h_door.location_name());
408 } 408 }
409
410 if (h_door.has_double_letters()) {
411 door.set_double_letters(h_door.double_letters());
412 }
409 } 413 }
410 414
411 void ProcessConnectionsFile(std::filesystem::path path, 415 void ProcessConnectionsFile(std::filesystem::path path,
diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index f5524c3..9c66e09 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp
@@ -198,6 +198,15 @@ class Validator {
198 std::cout << "Door " << door_identifier.ShortDebugString() 198 std::cout << "Door " << door_identifier.ShortDebugString()
199 << " needs an explicit location name." << std::endl; 199 << " needs an explicit location name." << std::endl;
200 } 200 }
201
202 if (h_door.double_letters() &&
203 (h_door.type() == DoorType::STANDARD ||
204 h_door.type() == DoorType::LOCATION_ONLY ||
205 h_door.type() == DoorType::GRAVESTONE)) {
206 std::cout << "Door " << door_identifier.ShortDebugString()
207 << " is a location that depends on double_letters."
208 << std::endl;
209 }
201 } 210 }
202 } 211 }
203 212