Skip to content

Commit

Permalink
Lock the door... and the door lock? Why are these separate again?
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Dec 17, 2024
1 parent 985356a commit a15033c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/npc_behavior_rules_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ TEST_CASE( "NPC-rules-avoid-locks", "[npc_rules]" )
vehicle_part *door = door_parts_at_target.front();
// The door must be closed for the lock to be effective.
door->open = false;
// For some reason, both the door and the door lock must be set to locked.
door->locked = true;

// NOTE: The door lock is a separate part. We must ensure both the door exists and the door lock exists for this test.
std::vector<vehicle_part *> door_lock_parts_at_target = test_vehicle->get_parts_at(
Expand Down

0 comments on commit a15033c

Please sign in to comment.