Posted By: alibaba
No Error just a crash? - 02/19/14 16:43
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:
Comment out that line and youŽll see what i mean.
It took me nearly a week to find that nasty bug!
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!