demo stuff, script contexts

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1909 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-10 10:17:31 +00:00
parent 5cd58a52f8
commit 87c7755754
8 changed files with 71 additions and 26 deletions
+4 -2
View File
@@ -376,11 +376,13 @@ bool load_world(char *mname) // still supports all map formats that have
conoutf("read map %s (%d milliseconds)", cgzname, SDL_GetTicks()-lastmillis);
conoutf("%s", hdr.maptitle);
startmap(mname);
pushscontext(IEXC_MAPCFG); // untrusted altogether
execfile("config/default_map_settings.cfg");
changescriptcontext(IEXC_FOREIGN);
execfile(pcfname);
execfile(mcfname);
changescriptcontext(IEXC_CORE);
popscontext();
c2skeepalive();
loopi(256) if(texuse[i]) lookuptexture(i);
c2skeepalive();