>>113
>if(MapData[(int)(playerY)/MAP_SIZE][(int)(playerX)/MAP_SIZE]==1){
この条件文がどこの地面に当たっているかを調べてるんじゃないの?