Skip to content

Commit

Permalink
techset fixes for iw3
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Oct 30, 2019
1 parent 4072b9e commit 46c1c14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/IW3/Assets/Material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ namespace ZoneTool
}

auto file = FileSystem::FileOpen(path, "wb");

if (!file)
{
return;
}

nlohmann::json matdata;

MATERIAL_DUMP_STRING(name);
Expand All @@ -120,7 +124,6 @@ namespace ZoneTool
MATERIAL_DUMP_INT(stateFlags);
MATERIAL_DUMP_INT(cameraRegion);

MATERIAL_DUMP_BITS_ENTRY(stateBitsEntry, 34);
MATERIAL_DUMP_CONST_ARRAY(constantTable, mat->constantCount);
MATERIAL_DUMP_STATE_MAP(stateMap, mat->stateBitsCount);

Expand Down
2 changes: 1 addition & 1 deletion src/IW3/Assets/Techset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ namespace ZoneTool
// convert to IW4
auto asset = new IW4::VertexDecl;
memset(asset, 0, sizeof IW4::VertexDecl);

asset->name = name;

asset->hasOptionalSource = vertex->hasOptionalSource;
Expand Down

0 comments on commit 46c1c14

Please sign in to comment.