If you assign a skin of a model to the target_map of a panel and then change the level then the engine will just crash instead of giving an error.
Put this code into the sample folder and try it:

Code:
#include <acknex.h>
#include <default.c>


PANEL* test =
{
	bmap = "banana.bmp";
	flags=SHOW;
}

void main()
{
	level_load("");
	ENTITY* testc=ent_create("basket_ball.mdl",nullvector,NULL);
	camera.x=-100;
	//test.target_map=bmap_for_entity(testc,0);
	while(!key_k)wait(1);
	wait(-1);
	level_load("small.hmp");	
}



Comment out that line and youŽll see what i mean.

It took me nearly a week to find that nasty bug!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de