Skip to content

Commit

Permalink
Reverts part of PR HarbourMasters#2851 that required OTR regen. (Harb…
Browse files Browse the repository at this point in the history
  • Loading branch information
leggettc18 authored May 8, 2023
1 parent f5aacaf commit b166bdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OTRExporter/OTRExporter/CollisionExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion soh/soh/resource/importer/CollisionHeaderFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b166bdd

Please sign in to comment.