X-Git-Url: https://deadsoftware.ru/gitweb?p=cavecraft.git;a=blobdiff_plain;f=src%2FCAVE.mpsrc;h=623e6a4d509ddfd1ff5a337cce55a91ca9ee68de;hp=ccdef84c131cb89a5c76f85934566c3e4ab5663e;hb=ea6f3cf3a62e2368ee1ccba66d46563cab834511;hpb=1ef13d5bd0592dde48cc837e05b13e93e82db25b diff --git a/src/CAVE.mpsrc b/src/CAVE.mpsrc index ccdef84..623e6a4 100644 --- a/src/CAVE.mpsrc +++ b/src/CAVE.mpsrc @@ -513,9 +513,8 @@ procedure saveworld(path:string); if file_exists(path+world_name)<>1 then file_create(path+world_name); if open_file(path+world_name)=1 then begin - writeint(player.getX); - writeint(player.getX); - //Matrix + writeint(player.getX); + writeint(player.getY); //Matrix SaveMapRLE; SaveMapInfoRLE; @@ -1272,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; @@ -1282,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;