mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-30 11:47:45 +00:00
Inn bed: do player:begin_log_out() so the server-side hangs up properly (#77)
The client doesn't send that it disconnected, perhaps a bug on SE's end.
This commit is contained in:
parent
dfac7702fa
commit
58eb154ae4
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ function onReturn(scene, results, player)
|
||||||
if decision == NOTHING then
|
if decision == NOTHING then
|
||||||
player:finish_event(EVENT_ID)
|
player:finish_event(EVENT_ID)
|
||||||
else
|
else
|
||||||
|
if decision == LOG_OUT or decision == EXIT_GAME then
|
||||||
|
player:begin_log_out()
|
||||||
|
end
|
||||||
player:play_scene(player.id, EVENT_ID, SCENE_SLEEP_ANIM, CUTSCENE_FLAGS, {decision})
|
player:play_scene(player.id, EVENT_ID, SCENE_SLEEP_ANIM, CUTSCENE_FLAGS, {decision})
|
||||||
end
|
end
|
||||||
elseif scene == SCENE_SLEEP_ANIM then
|
elseif scene == SCENE_SLEEP_ANIM then
|
||||||
|
|
Loading…
Add table
Reference in a new issue