Mistři v programování na #hovnokod

C/C++ #655

for (i = pdir ? old_end_y : old_end_x; i != pdir ? (sel_end_y + gstep) : (sel_end_x + gstep); i++)
{
  if (cells[pdir ? sel_x : i][pdir ? i : sel_y])
    freemem(cells[pdir ? sel_x : i][pdir ? i : sel_y]);
  if (is_arith)
  {
    cells[pdir ? sel_x : i][pdir ? i : sel_y] = ftoa(arith_first);
    arith_first += arith_step;
  }
  else
  {
  if (cells[sel_x][sel_y])
  {
    cells[pdir ? sel_x : i][pdir ? i : sel_y] = (char*)allocmem(strlen(cells[sel_x][sel_y]) + 1);
    strcpy(cells[pdir ? sel_x : i][pdir ? i : sel_y], cells[sel_x][sel_y]);
  }
}

HovnoKod,