With the help of posters on the forums I have a good way of moving between maps in CS but I haven't gotten it yet with CEL.
I load a map similar to the walktut, then later I try to remove that mapfile from the region, remove the regions and zone and create new ones to a new map file like so:
// Now get the iPcZoneManager interface so we can setup the level.
region->RemoveMapFile(mapfile);
zonemgr->RemoveAllRegions();
zonemgr->RemoveAllZones();
iCelZone* zone = zonemgr->CreateZone ("main");
region = zonemgr->CreateRegion ("main");
zone->LinkRegion (region);
iCelMapFile* battle_mapfile = region->CreateMapFile ();
battle_mapfile->SetPath ("/lev/phage_battle1");
battle_mapfile->SetFile ("world");
But the new map doesn't load, the old map doesn't unload for that matter as well.
What am I missing?
Thanks
