fix: conclusion field only accepts one clue
This commit is contained in:
parent
7a2cafc889
commit
c17c17e0df
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue