From d5b86767dde8254b1cd148ac77284baaa99449b1 Mon Sep 17 00:00:00 2001 From: Dregu Date: Wed, 8 Nov 2023 08:19:26 +0200 Subject: [PATCH] enable respawning player from death screen --- src/injected/ui.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/injected/ui.cpp b/src/injected/ui.cpp index a48eb06b9..bf97d8a4f 100644 --- a/src/injected/ui.cpp +++ b/src/injected/ui.cpp @@ -2207,7 +2207,7 @@ void warp_next_level(size_t num) void respawn() { - if (g_state->screen != 11 && g_state->screen != 12) + if (g_state->screen != 11 && g_state->screen != 12 && g_state->screen != 14) { if (g_state->screen > 11) { @@ -2219,6 +2219,14 @@ void respawn() } return; } + if (g_state->screen == 14) + { + g_state->screen = 12; + g_game_manager->journal_ui->fade_timer = 15; + g_game_manager->journal_ui->state = 5; + g_state->camera->focus_offset_x = 0; + g_state->camera->focus_offset_y = 0; + } for (int8_t i = 0; i < g_state->items->player_count; ++i) { auto found = false;