hedgewars/uLand.pas
changeset 3228 44a59edc7bac
parent 3225 5d8f4737b6cd
child 3236 4ab3917d7d44
equal deleted inserted replaced
3227:ac48cbe175c8 3228:44a59edc7bac
   918         maze_inverted := true;
   918         maze_inverted := true;
   919     end;
   919     end;
   920 end;
   920 end;
   921 
   921 
   922 num_cells_x := LAND_WIDTH div cellsize;
   922 num_cells_x := LAND_WIDTH div cellsize;
   923 if num_cells_x mod 2 = 0 then num_cells_x := num_cells_x - 1; //needs to be odd
   923 if not odd(num_cells_x) then num_cells_x := num_cells_x - 1; //needs to be odd
   924 num_cells_y := LAND_HEIGHT div cellsize;
   924 num_cells_y := LAND_HEIGHT div cellsize;
   925 if num_cells_y mod 2 = 0 then num_cells_y := num_cells_y - 1;
   925 if not odd(num_cells_y) then num_cells_y := num_cells_y - 1;
   926 num_edges_x := num_cells_x - 1;
   926 num_edges_x := num_cells_x - 1;
   927 num_edges_y := num_cells_y - 1;
   927 num_edges_y := num_cells_y - 1;
   928 seen_cells_x := num_cells_x div 2;
   928 seen_cells_x := num_cells_x div 2;
   929 seen_cells_y := num_cells_y div 2;
   929 seen_cells_y := num_cells_y div 2;
   930 
   930