Quote Originally Posted by imcold View Post
The numbers in test.map are shortints (2 byte), you are reading it as a file of integer - integer is 4 bytes on 32bit systems.

Edit:
It crashes on division by zero in rendering on this line: draw_yoffset2:= (halfheight*12/ray_draw)-1;
Also, a lot of out of bounds access on map array -> crashes a lot.
Otherwise it runs, Freepascal 3.0 64bit at about 50% cpu load.

btw.probably include the SDL units in the sources as well?
Thanks. I'll repair it with next commit.