summaryrefslogtreecommitdiff
path: root/ZAPD/ZCollision.cpp
diff options
context:
space:
mode:
authorKenix3 <kenixwhisperwind@gmail.com>2021-01-04 20:32:46 -0500
committerGitHub <noreply@github.com>2021-01-04 20:32:46 -0500
commit820a74150cbba90e92ad5c0661ab189612762f21 (patch)
treea89b801ccff1df3be8b54ef46e3daa5fd428699f /ZAPD/ZCollision.cpp
parent540c79062bb88f9aae271f1b8e968f03d22276d6 (diff)
Bitconverter now supports more types and should correctly read floating point values. (#49)
* Bitconverter now supports more types and should correctly read floating points. * BitConverter now uses a better way to convert between data read from the object to float.
Diffstat (limited to 'ZAPD/ZCollision.cpp')
-rw-r--r--ZAPD/ZCollision.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZCollision.cpp b/ZAPD/ZCollision.cpp
index 2247c9c..7480658 100644
--- a/ZAPD/ZCollision.cpp
+++ b/ZAPD/ZCollision.cpp
@@ -53,14 +53,14 @@ ZCollisionHeader::ZCollisionHeader(ZFile* parent, std::string prefix, std::vecto
//if (highestPolyType > 0)
{
for (int i = 0; i < highestPolyType + 1; i++)
- polygonTypes.push_back(BitConverter::ToInt64BE(data, polyTypeDefSegmentOffset + (i * 8)));
+ polygonTypes.push_back(BitConverter::ToUInt64BE(data, polyTypeDefSegmentOffset + (i * 8)));
}
//else
//{
//int polyTypesSize = abs(polyTypeDefSegmentOffset - camDataSegmentOffset) / 8;
//for (int i = 0; i < polyTypesSize; i++)
- //polygonTypes.push_back(BitConverter::ToInt64BE(data, polyTypeDefSegmentOffset + (i * 8)));
+ //polygonTypes.push_back(BitConverter::ToUInt64BE(data, polyTypeDefSegmentOffset + (i * 8)));
//}
if (camDataSegmentOffset != 0)