From a0dffd0670b579b25b78ca2fdb486975bb7ef66e Mon Sep 17 00:00:00 2001 From: Indev Date: Mon, 16 Mar 2026 04:07:42 +0300 Subject: [PATCH] Fix listemotes calculating incorrect number of pages --- src/m_emotes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_emotes.cpp b/src/m_emotes.cpp index 515799af3..fe90c9a11 100644 --- a/src/m_emotes.cpp +++ b/src/m_emotes.cpp @@ -278,7 +278,7 @@ void M_DrawScaledEmote(fixed_t x, fixed_t y, fixed_t scale, emote_t *emote, INT3 static void Command_ListEmotes_f(void) { const int EMOTES_PER_PAGE = 24; - const int NUMPAGES = std::max(emotes.size()/EMOTES_PER_PAGE, 1); + const int NUMPAGES = emotes.size()/EMOTES_PER_PAGE + (emotes.size() % EMOTES_PER_PAGE != 0 ? 1 : 0); int page = 1; if (COM_Argc() > 1)