From: <ave...@us...> - 2003-11-30 18:13:04
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/AREImporter In directory sc8-pr-cvs1:/tmp/cvs-serv29514 Modified Files: AREImp.cpp Log Message: Add: AreImp opens the SearchMap too Index: AREImp.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/AREImporter/AREImp.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** AREImp.cpp 30 Nov 2003 17:07:18 -0000 1.17 --- AREImp.cpp 30 Nov 2003 18:13:01 -0000 1.18 *************** *** 98,105 **** tmm->Open(wedfile); - ImageMgr * lm = (ImageMgr*)core->GetInterface(IE_BMP_CLASS_ID); char ResRef[9]; strcpy(ResRef, WEDResRef); strcat(ResRef, "LM"); DataStream * lmstr = core->GetResourceMgr()->GetResource(ResRef, IE_BMP_CLASS_ID); lm->Open(lmstr, true); --- 98,106 ---- tmm->Open(wedfile); char ResRef[9]; strcpy(ResRef, WEDResRef); strcat(ResRef, "LM"); + + ImageMgr * lm = (ImageMgr*)core->GetInterface(IE_BMP_CLASS_ID); DataStream * lmstr = core->GetResourceMgr()->GetResource(ResRef, IE_BMP_CLASS_ID); lm->Open(lmstr, true); *************** *** 108,111 **** --- 109,113 ---- strcpy(ResRef, WEDResRef); strcat(ResRef, "SR"); + ImageMgr * sr = (ImageMgr*)core->GetInterface(IE_BMP_CLASS_ID); DataStream * srstr = core->GetResourceMgr()->GetResource(ResRef, IE_BMP_CLASS_ID); sr->Open(lmstr, true); *************** *** 357,361 **** map->AddTileMap(tm, lm, sr); core->FreeInterface(tmm); - //core->FreeInterface(am); return map; } --- 359,362 ---- |