[ZoneBuilder] Random fixes but clipmap import still doesn't work
This commit is contained in:
parent
e95bf591cf
commit
8974da19bb
@ -20,7 +20,7 @@ namespace Assets
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
entites->name = builder->getAllocator()->duplicateString(name);
|
entites->name = builder->getAllocator()->duplicateString(Utils::String::VA("maps/mp/%s.d3dbsp", name));
|
||||||
}
|
}
|
||||||
|
|
||||||
entites->entityString = builder->getAllocator()->duplicateString(ents.getBuffer());
|
entites->entityString = builder->getAllocator()->duplicateString(ents.getBuffer());
|
||||||
|
@ -775,10 +775,6 @@ namespace Assets
|
|||||||
memset(clipMap->cBrushes, 0, sizeof(Game::cbrush_t) * clipMap->numCBrushes);
|
memset(clipMap->cBrushes, 0, sizeof(Game::cbrush_t) * clipMap->numCBrushes);
|
||||||
for (int i = 0; i < clipMap->numCBrushes; ++i)
|
for (int i = 0; i < clipMap->numCBrushes; ++i)
|
||||||
{
|
{
|
||||||
if (i == 134)
|
|
||||||
{
|
|
||||||
__debugbreak();
|
|
||||||
}
|
|
||||||
clipMap->cBrushes[i].numsides = reader.read<unsigned int>() & 0xFFFF; // todo: check for overflow here
|
clipMap->cBrushes[i].numsides = reader.read<unsigned int>() & 0xFFFF; // todo: check for overflow here
|
||||||
if (clipMap->cBrushes[i].numsides > 0)
|
if (clipMap->cBrushes[i].numsides > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user