global state will quit game when the last focus is dropped
This commit is contained in:
parent
14e310c8eb
commit
6f8ceeed25
|
|
@ -43,7 +43,10 @@ func leave_stage(actor:Object, dropObject: bool = false) -> bool:
|
|||
|
||||
stage_list.erase(actor)
|
||||
|
||||
stage_list.front().has_stage = true
|
||||
if stage_list != []:
|
||||
stage_list.front().has_stage = true
|
||||
else:
|
||||
get_tree().quit()
|
||||
|
||||
return false
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue