Skip to content

Commit

Permalink
enable respawning player from death screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Nov 8, 2023
1 parent a7daaf9 commit d5b8676
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/injected/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down

0 comments on commit d5b8676

Please sign in to comment.