[ZoneBuilder] Small fixes in clipmap
This commit is contained in:
parent
715fe82483
commit
470361848e
@ -11,6 +11,8 @@ namespace Assets
|
||||
Game::clipMap_t* dest = buffer->dest<Game::clipMap_t>();
|
||||
buffer->save(asset);
|
||||
|
||||
dest->isInUse = 0;
|
||||
|
||||
buffer->pushBlock(Game::XFILE_BLOCK_VIRTUAL);
|
||||
|
||||
if (asset->name)
|
||||
|
@ -228,7 +228,18 @@ namespace Components
|
||||
FILETIME fileTime;
|
||||
GetSystemTimeAsFileTime(&fileTime);
|
||||
|
||||
Game::XFileHeader header = { XFILE_MAGIC_UNSIGNED, XFILE_VERSION_IW4X, Game::XFileLanguage::XLANG_NONE, fileTime.dwHighDateTime, fileTime.dwLowDateTime };
|
||||
Game::XFileHeader header =
|
||||
{
|
||||
XFILE_MAGIC_UNSIGNED,
|
||||
#ifdef DEBUG
|
||||
XFILE_VERSION,
|
||||
#else
|
||||
XFILE_VERSION_IW4X,
|
||||
#endif
|
||||
Game::XFileLanguage::XLANG_NONE,
|
||||
fileTime.dwHighDateTime,
|
||||
fileTime.dwLowDateTime
|
||||
};
|
||||
|
||||
std::string outBuffer;
|
||||
outBuffer.append(reinterpret_cast<char*>(&header), sizeof(header));
|
||||
|
@ -2420,7 +2420,7 @@ namespace Game
|
||||
struct clipMap_t
|
||||
{
|
||||
const char* name;
|
||||
int unknown1; // +8
|
||||
int isInUse; // +8
|
||||
int numCPlanes; // +8
|
||||
cplane_t* cPlanes; // sizeof 20, +12
|
||||
int numStaticModels; // +16
|
||||
@ -2460,7 +2460,8 @@ namespace Game
|
||||
Bounds* cBrushBounds; // same count as cBrushes, +148
|
||||
int * cBrushContents; // same count as cBrushes, +152
|
||||
MapEnts * mapEnts; // +156
|
||||
int unkCount4; // +160
|
||||
unsigned short unkCount4; // +160
|
||||
short pad; // +160
|
||||
SModelAabbNode* unknown4; // +164
|
||||
unsigned __int16 dynEntCount[2];
|
||||
DynEntityDef *dynEntDefList[2];
|
||||
|
Loading…
Reference in New Issue
Block a user