mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-30 23:10:14 -05:00
parent
f5aacaf38b
commit
b166bdd3fc
@ -41,8 +41,8 @@ void OTRExporter_Collision::Save(ZResource* res, const fs::path& outPath, Binary
|
||||
writer->Write((uint32_t)col->PolygonTypes.size());
|
||||
|
||||
for (uint16_t i = 0; i < col->PolygonTypes.size(); i++) {
|
||||
writer->Write(col->PolygonTypes[i].data[0]);
|
||||
writer->Write(col->PolygonTypes[i].data[1]);
|
||||
writer->Write(col->PolygonTypes[i].data[0]);
|
||||
}
|
||||
|
||||
writer->Write((uint32_t)col->camData->entries.size());
|
||||
|
@ -77,8 +77,8 @@ void Ship::CollisionHeaderFactoryV0::ParseFileBinary(std::shared_ptr<BinaryReade
|
||||
for (uint32_t i = 0; i < collisionHeader->surfaceTypesCount; i++) {
|
||||
SurfaceType surfaceType;
|
||||
|
||||
surfaceType.data[0] = reader->ReadUInt32();
|
||||
surfaceType.data[1] = reader->ReadUInt32();
|
||||
surfaceType.data[0] = reader->ReadUInt32();
|
||||
|
||||
collisionHeader->surfaceTypes.push_back(surfaceType);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user