Skip to content

Commit

Permalink
Fix end game confirmation message
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Jun 27, 2024
1 parent c4c65e9 commit ba8c9f9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,11 +2138,12 @@ static void M_EndGame(int choice)
M_StartMessage(s_ENDGAME, &M_EndGameResponse, true);
else
{
static char buffer[160];
static char line2[160];
static char endgamestring[320];

M_snprintf(buffer, sizeof(buffer), (usinggamecontroller ? s_PRESSA : s_PRESSYN), selectbutton);
M_snprintf(buffer, sizeof(buffer), "%s\n\n%s", s_ENDGAME, buffer);
M_StartMessage(buffer, &M_EndGameResponse, true);
M_snprintf(line2, sizeof(line2), (usinggamecontroller ? s_PRESSA : s_PRESSYN), selectbutton);
M_snprintf(endgamestring, sizeof(endgamestring), "%s\n\n%s", s_ENDGAME, line2);
M_StartMessage(endgamestring, &M_EndGameResponse, true);
}
}

Expand Down

0 comments on commit ba8c9f9

Please sign in to comment.