about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/validator/validator.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/tools/validator/validator.cpp b/tools/validator/validator.cpp index d651e04..43d842d 100644 --- a/tools/validator/validator.cpp +++ b/tools/validator/validator.cpp
@@ -225,13 +225,19 @@ class Validator {
225 << " needs an explicit location name." << std::endl; 225 << " needs an explicit location name." << std::endl;
226 } 226 }
227 227
228 if (h_door.double_letters() && 228 if (h_door.type() == DoorType::STANDARD ||
229 (h_door.type() == DoorType::STANDARD || 229 h_door.type() == DoorType::LOCATION_ONLY ||
230 h_door.type() == DoorType::LOCATION_ONLY || 230 h_door.type() == DoorType::GRAVESTONE) {
231 h_door.type() == DoorType::GRAVESTONE)) { 231 if (h_door.double_letters()) {
232 std::cout << "Door " << door_identifier.ShortDebugString() 232 std::cout << "Door " << door_identifier.ShortDebugString()
233 << " is a location that depends on double_letters." 233 << " is a location that depends on double_letters."
234 << std::endl; 234 << std::endl;
235 }
236
237 if (!h_door.has_location_room()) {
238 std::cout << "Door " << door_identifier.ShortDebugString()
239 << " is missing a location_room." << std::endl;
240 }
235 } 241 }
236 242
237 bool needs_id = (h_door.type() != DoorType::EVENT || h_door.latch()); 243 bool needs_id = (h_door.type() != DoorType::EVENT || h_door.latch());