Using the application simpmap, I would like to be able to hit the downarrow key
and unload "flarge", and load up "castle"
I tried the code:
if (kbd->GetKeyState (CSKEY_DOWN))
{
csRef<iVFS> VFS (CS_QUERY_REGISTRY (GetObjectRegistry (), iVFS));
VFS->ChDir ("/lev/castle");
loader->LoadMapFile ("world");
}
But it gave me a segfault. Eventually I'll need to be able to unload and load
up levels on the fly so people can go from zone to zone. Also is there a way
to unload "EVERYTHING" in the engine and start from scratch? If not, I'll have
to take careful measure to deallocate all the memory before loading the new
world.
,CrazyJim
---------------------------------
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]