When i have to apply a texture to my terrain, i use the requester from WinBlitz3D, and it works fine. But when i am loading a previous world in my editor, and i press a button to the requester, the whole program crashes with a windows chord-sound, and the program closes. Is this a memory problem or what???
If BCF_TestButton(cmdTerrTex) And STerrain<>0 file$=RequestFile("Open texture ...","Bitmap Files (*.bmp)|*.BMP|JPEG Files (*.JPG)|*.JPG|All Files (*.*)|*.*") If FileType(file$)=1 tex=LoadTexture(file) If tex For e.Entity = Each Entity If e\Ent = STerrain e\DetailMap$ = file$ ScaleTexture tex,8,8 EntityTexture e\Ent,tex,0,1 FreeTexture tex End If Next End If End If End If