I did some additional tests in order to help you hunt that down.

I used Paint.net as well, tga, 24 bits, RLE compressed, image sizes 256*256, 512*512 and 500*500. I tried it with level_load(NULL) and level_load("testmap.wmb"). In any of the above cases the code ran totally fine.


Always learn from history, to be sure you make the same mistakes again...