fix: conclusion field only accepts one clue

This commit is contained in:
Sara Gerretsen 2025-11-06 01:41:13 +01:00
parent 7a2cafc889
commit c17c17e0df

View file

@ -17,6 +17,9 @@ void ConclusionField::enter_tree() {
}
void ConclusionField::on_body_entered(Node2D *node) {
if (this->photo) {
return; // only accept one photo at a time
}
if (PinnedPhoto * photo{ cast_to<PinnedPhoto>(node) }) {
photo->push_conclusion_slot(this);
}