X-Git-Url: https://deadsoftware.ru/gitweb?p=cavecraft.git;a=blobdiff_plain;f=src%2FCAVE.mpsrc;h=623e6a4d509ddfd1ff5a337cce55a91ca9ee68de;hp=27145e52a878785f32dc010a5b14ce0a6b945ca9;hb=ea6f3cf3a62e2368ee1ccba66d46563cab834511;hpb=a27a6f2feec54b8b3aa2ffe5a5559c48f9295150 diff --git a/src/CAVE.mpsrc b/src/CAVE.mpsrc index 27145e5..623e6a4 100644 --- a/src/CAVE.mpsrc +++ b/src/CAVE.mpsrc @@ -1271,7 +1271,7 @@ function menu_game:boolean; if m_cur>3 then m_cur:=0; end; - if clickedKey(KEY_MENU_LEFT) then + if (max_r >= 0) and clickedKey(KEY_MENU_LEFT) then begin cur_name:=cur_name-1; if cur_name<0 then cur_name:=0; @@ -1281,7 +1281,7 @@ function menu_game:boolean; if file_exists('/'+sd+'/cavecraft/saves/'+names[cur_name]+'/player.dat')=1 then end; - if clickedKey(KEY_MENU_RIGHT) then + if (max_r >= 0) and clickedKey(KEY_MENU_RIGHT) then begin cur_name:=cur_name+1; if cur_name>max_r then cur_name:=max_r;