mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Updated map extractor
This commit is contained in:
parent
e08d8642f4
commit
1aa21af2f4
2 changed files with 5 additions and 3 deletions
|
|
@ -273,7 +273,9 @@ void LoadMPQFiles(int const locale)
|
|||
//need those files only if extract maps
|
||||
if(extract & EXTRACT_MAP)
|
||||
{
|
||||
sprintf(filename,"%s/Data/common.MPQ",input_path);
|
||||
sprintf(filename,"%s/Data/common-2.MPQ",input_path);
|
||||
new MPQArchive(filename);
|
||||
sprintf(filename,"%s/Data/lichking.MPQ",input_path);
|
||||
new MPQArchive(filename);
|
||||
sprintf(filename,"%s/Data/expansion.MPQ",input_path);
|
||||
new MPQArchive(filename);
|
||||
|
|
|
|||
|
|
@ -419,7 +419,7 @@ void TransformData()
|
|||
delete mcells;
|
||||
}
|
||||
|
||||
const char MAP_MAGIC[] = "MAP_2.00";
|
||||
const char MAP_MAGIC[] = "MAP_2.01";
|
||||
|
||||
bool ConvertADT(char * filename,char * filename2)
|
||||
{
|
||||
|
|
@ -441,7 +441,7 @@ bool ConvertADT(char * filename,char * filename2)
|
|||
{
|
||||
for(unsigned int y=0;y<16;y++)
|
||||
{
|
||||
if(mcells->ch[y][x].area_id && mcells->ch[y][x].area_id < 0x102D)
|
||||
if(mcells->ch[y][x].area_id && mcells->ch[y][x].area_id < 0x121F)
|
||||
{
|
||||
if(areas[mcells->ch[y][x].area_id]==0xffff)
|
||||
printf("\nCan't find area flag for areaid %u.\n",mcells->ch[y][x].area_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue