1
Fork 0
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:
thedax 2025-06-28 10:33:02 -04:00 committed by GitHub
parent dfac7702fa
commit 58eb154ae4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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