fix level statistics page controls

This commit is contained in:
Alug committed 2025-01-21 16:54:28 +01:00
1 parent a899923067
commit 0d3d958b46
1 file changed
+4 -4
+4 -4
View File
@@ -8911,7 +8911,7 @@ static void M_HandleLevelStats(INT32 choice)
switch (choice)
{
case KEY_DOWNARROW:
if (statsCurrentPage != 0) // Must be on level stats page
if (statsCurrentPage != 1) // Must be on level stats page
break;
S_StartSound(NULL, sfx_menu1);
if (statsLocation < statsMax)
@@ -8919,7 +8919,7 @@ static void M_HandleLevelStats(INT32 choice)
break;
case KEY_UPARROW:
if (statsCurrentPage != 0) // Must be on level stats page
if (statsCurrentPage != 1) // Must be on level stats page
break;
S_StartSound(NULL, sfx_menu1);
if (statsLocation)
@@ -8942,14 +8942,14 @@ static void M_HandleLevelStats(INT32 choice)
break;
case KEY_PGDN:
if (statsCurrentPage != 0) // Must be on level stats page
if (statsCurrentPage != 1) // Must be on level stats page
break;
S_StartSound(NULL, sfx_menu1);
statsLocation += (statsLocation+13 >= statsMax) ? statsMax-statsLocation : 13;
break;
case KEY_PGUP:
if (statsCurrentPage != 0) // Must be on level stats page
if (statsCurrentPage != 1) // Must be on level stats page
break;
S_StartSound(NULL, sfx_menu1);
statsLocation -= (statsLocation < 13) ? statsLocation : 13;