Skip to content

Commit e485c07

Browse files
committed
Dont allow saving to the first page
1 parent 895c0aa commit e485c07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prboom2/src/m_menu.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ static void M_DrawSave(void)
10991099
for (i = 0 ; i < load_end ; i++)
11001100
{
11011101
M_DrawSaveLoadBorder(LoadDef.x,LoadDef.y+LINEHEIGHT*i);
1102-
M_WriteText(LoadDef.x,LoadDef.y+LINEHEIGHT*i,savegamestrings[i], CR_DEFAULT);
1102+
M_WriteText(LoadDef.x,LoadDef.y+LINEHEIGHT*i,savegamestrings[i], current_page == 0 ? CR_DARKEN : CR_DEFAULT);
11031103
}
11041104

11051105
M_DrawTabs(saves_pages, 5, 145);
@@ -1147,6 +1147,9 @@ static inline dboolean IsMapName(char *str)
11471147

11481148
static void M_SaveSelect(int choice)
11491149
{
1150+
if (current_save_page == 0)
1151+
return;
1152+
11501153
// we are going to be intercepting all chars
11511154
saveStringEnter = 1;
11521155

0 commit comments

Comments
 (0)