From 8452d4c0ef69ea6157d3d88d96061a130facaed7 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Thu, 24 May 2018 20:13:15 +0000 Subject: [PATCH] Parse out TranslucencyPatternSelect --- Src/Graphics/New3D/PolyHeader.cpp | 5 +++++ Src/Graphics/New3D/PolyHeader.h | 1 + 2 files changed, 6 insertions(+) diff --git a/Src/Graphics/New3D/PolyHeader.cpp b/Src/Graphics/New3D/PolyHeader.cpp index 7689bb5..a28d7b6 100644 --- a/Src/Graphics/New3D/PolyHeader.cpp +++ b/Src/Graphics/New3D/PolyHeader.cpp @@ -377,6 +377,11 @@ int PolyHeader::TranslatorMapOffset() return (header[6] >> 24) & 0x7f; } +bool PolyHeader::TranslucencyPatternSelect() +{ + return (header[6] & 0x10000) > 0; +} + // // misc // diff --git a/Src/Graphics/New3D/PolyHeader.h b/Src/Graphics/New3D/PolyHeader.h index 1d33c30..f614368 100644 --- a/Src/Graphics/New3D/PolyHeader.h +++ b/Src/Graphics/New3D/PolyHeader.h @@ -144,6 +144,7 @@ public: bool Luminous(); float LightModifier(); int TranslatorMapOffset(); + bool TranslucencyPatternSelect(); // misc UINT64 Hash(); // make a unique hash for sorting by state