[ZoneBuilder] I MOTHERFUCKING FIXED CLIPMAPS AND CUSTOM MAPS WORK NOW!!!!!!!
-sorry had to get that out
This commit is contained in:
parent
e87ce9938d
commit
aabeb23023
@ -90,7 +90,12 @@ namespace Assets
|
|||||||
|
|
||||||
buffer->align(Utils::Stream::ALIGN_4);
|
buffer->align(Utils::Stream::ALIGN_4);
|
||||||
Game::cbrushside_t* sides = buffer->dest<Game::cbrushside_t>();
|
Game::cbrushside_t* sides = buffer->dest<Game::cbrushside_t>();
|
||||||
buffer->saveArray(asset->cBrushSides, asset->numCBrushSides);
|
// we need the pointer to each of these to be stored so we can't write them all at once
|
||||||
|
for(int i = 0; i < asset->numCBrushSides; ++i)
|
||||||
|
{
|
||||||
|
builder->storePointer(&asset->cBrushSides[i]); // for reference in cBrush
|
||||||
|
buffer->save(&asset->cBrushSides[i]);
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < asset->numCBrushSides; ++i)
|
for (int i = 0; i < asset->numCBrushSides; ++i)
|
||||||
{
|
{
|
||||||
@ -350,6 +355,8 @@ namespace Assets
|
|||||||
{
|
{
|
||||||
AssertSize(Game::cbrushside_t, 8);
|
AssertSize(Game::cbrushside_t, 8);
|
||||||
|
|
||||||
|
MessageBoxA(0, "BrushSide shouldn't be written in cBrush!", "WARNING", MB_ICONEXCLAMATION);
|
||||||
|
|
||||||
buffer->align(Utils::Stream::ALIGN_4);
|
buffer->align(Utils::Stream::ALIGN_4);
|
||||||
builder->storePointer(brush->brushSide);
|
builder->storePointer(brush->brushSide);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user