![](/media/cache/profiles/download_PSnftkh.png.50x50_q85.png)
Jirat
Fork of project by
Diff: main.cpp
- Revision:
- 9:102af5021c6c
- Parent:
- 8:a8d39b5d17ab
- Child:
- 10:b8d45f9b00bf
--- a/main.cpp Sat Dec 03 07:44:29 2016 +0000 +++ b/main.cpp Sat Dec 03 07:57:09 2016 +0000 @@ -147,10 +147,10 @@ else if(jy > 1010.0){return 's';} else{return NULL;} }else{ - if(jx < 14.0){ return 'a';} - else if(jx > 1010.0){return 'd';} - else if(jy < 14.0){ return 'w';} - else if(jy > 1010.0){return 's';} + if(jx < 14.0){ return 'd';} + else if(jx > 1010.0){return 'a';} + else if(jy < 14.0){ return 's';} + else if(jy > 1010.0){return 'w';} else{return NULL;} } } @@ -295,7 +295,7 @@ if(ship_platform[x][y]!=0 and atk_platform[x][y]==0){ atk_platform[x][y] = ship_platform[x][y]; bt.putc(posit2char(atk_platform[x][y])); - ship_underATK[check_ship_underATK] = (y*10)+x; + ship_underATK[check_ship_underATK] = (x*10)+y; check_ship_underATK++; if(atk_platform[x][y]==4){ for(i=0;i<4;i++){