global state will quit game when the last focus is dropped

This commit is contained in:
betalars 2023-07-18 15:55:54 +02:00
parent 14e310c8eb
commit 6f8ceeed25
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@ func leave_stage(actor:Object, dropObject: bool = false) -> bool:
stage_list.erase(actor) stage_list.erase(actor)
if stage_list != []:
stage_list.front().has_stage = true stage_list.front().has_stage = true
else:
get_tree().quit()
return false return false