diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-01-08 17:38:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 17:38:31 -0500 |
| commit | fd4d53a2684871a1ac28668515d025470a45ef7f (patch) | |
| tree | 47ebf84c86c4f1b943b95029debf1d13759f456e /ZAPD/ZRoom/Commands/SetMesh.cpp | |
| parent | 1bacd7fdc964ad9eec9d8b56373eb10e10723d2f (diff) | |
Fixed bug with declarations at 0x0000, and fixed improperly sized palettes. (#65)
* Fixed bug with extraction of ci4 textures
* Made a bunch of declarations static
* Removed manual writes to declarations dictionary from external classes.
* Added a bunch of deconstructors, freed a bunch of stuff
* Fixed bug with declarations at 0x0000, and fixed issue with palette sizing.
* Fixed VS Lib and Include Dirs
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetMesh.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetMesh.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ZAPD/ZRoom/Commands/SetMesh.cpp b/ZAPD/ZRoom/Commands/SetMesh.cpp index f371398..b0c2f58 100644 --- a/ZAPD/ZRoom/Commands/SetMesh.cpp +++ b/ZAPD/ZRoom/Commands/SetMesh.cpp @@ -167,7 +167,8 @@ SetMesh::SetMesh(ZRoom* nZRoom, std::vector<uint8_t> rawData, int rawDataIndex, } else // UH OH { - int bp = 0; + if (Globals::Instance->verbosity >= VERBOSITY_INFO) + printf("WARNING: MeshHeader FMT %i not implemented!\n", fmt); } meshHeader1->headerType = 1; @@ -279,6 +280,15 @@ SetMesh::SetMesh(ZRoom* nZRoom, std::vector<uint8_t> rawData, int rawDataIndex, } } +SetMesh::~SetMesh() +{ + if (meshHeader != nullptr) + { + delete meshHeader; + meshHeader = nullptr; + } +} + void SetMesh::GenDListDeclarations(std::vector<uint8_t> rawData, ZDisplayList* dList) { string sourceOutput = dList->GetSourceOutputCode(zRoom->GetName()); // HOTSPOT |
