mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11091] In similar way with prev commit rename extarctor sources magic string.
This commit is contained in:
parent
b315362b22
commit
b106ec92f6
5 changed files with 5 additions and 5 deletions
|
|
@ -58,7 +58,7 @@ bool Model::ConvertToVMAPModel(char * outfilename)
|
||||||
printf("Can't create the output file '%s'\n",outfilename);
|
printf("Can't create the output file '%s'\n",outfilename);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
fwrite(szWMAPMAGIC,8,1,output);
|
fwrite(szRawVMAPMagic,8,1,output);
|
||||||
uint32 nVertices = 0;
|
uint32 nVertices = 0;
|
||||||
nVertices = header.nBoundingVertices;
|
nVertices = header.nBoundingVertices;
|
||||||
fwrite(&nVertices, sizeof(int), 1, output);
|
fwrite(&nVertices, sizeof(int), 1, output);
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ bool preciseVectorData = false;
|
||||||
|
|
||||||
//static const char * szWorkDirMaps = ".\\Maps";
|
//static const char * szWorkDirMaps = ".\\Maps";
|
||||||
const char * szWorkDirWmo = "./Buildings";
|
const char * szWorkDirWmo = "./Buildings";
|
||||||
const char * szWMAPMAGIC = "VMAP003";
|
const char * szRawVMAPMagic = "VMAP003";
|
||||||
|
|
||||||
// Local testing functions
|
// Local testing functions
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ enum ModelFlags
|
||||||
};
|
};
|
||||||
|
|
||||||
extern const char * szWorkDirWmo;
|
extern const char * szWorkDirWmo;
|
||||||
extern const char * szWMAPMAGIC;
|
extern const char * szRawVMAPMagic; // vmap magic string for extracted raw vmap data
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ bool WMORoot::ConvertToVMAPRootWmo(FILE *pOutfile)
|
||||||
{
|
{
|
||||||
//printf("Convert RootWmo...\n");
|
//printf("Convert RootWmo...\n");
|
||||||
|
|
||||||
fwrite(szWMAPMAGIC,1,8,pOutfile);
|
fwrite(szRawVMAPMagic,1,8,pOutfile);
|
||||||
unsigned int nVectors = 0;
|
unsigned int nVectors = 0;
|
||||||
fwrite(&nVectors,sizeof(nVectors),1,pOutfile); // will be filled later
|
fwrite(&nVectors,sizeof(nVectors),1,pOutfile); // will be filled later
|
||||||
fwrite(&nGroups,4,1,pOutfile);
|
fwrite(&nGroups,4,1,pOutfile);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11090"
|
#define REVISION_NR "11091"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue