jan_flanders

Untitled

Dec 23rd, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.40 KB | None | 0 0
  1.             let x = ref 0 in
  2.             let y = ref 0 in
  3.             let x_coordinates = Array.init !num_points (fun i ->
  4.                 let flag = DynArray.get flags i in
  5.                 if flag land 0x10 <> 0 then begin
  6.                     if flag land 0x02 <> 0 then begin x:= !x + read_byte ch; !x end
  7.                     else 0
  8.                 end else begin
  9.                     if flag land 0x02 <> 0 then begin x:= !x -read_byte ch; !x end
  10.                     else begin x := !x + rd16 ch; !x end
  11.                 end
  12.             ) in
Advertisement
Add Comment
Please, Sign In to add comment