diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-05-06 08:53:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-06 08:53:42 -0400 |
| commit | bd4735480a2e6b53585a4f764ae13804e0737a21 (patch) | |
| tree | 52d2255734db8cbb8b36b334a79f41fc612d40ed /ZAPD/ZRoom/Commands/SetPathways.cpp | |
| parent | ae468e0c343a37bb055fd495df49e6ca4885bd8f (diff) | |
Add a `format` rule to Makefile (#134)
* Add format rule to makefile
* run format
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetPathways.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetPathways.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ZAPD/ZRoom/Commands/SetPathways.cpp b/ZAPD/ZRoom/Commands/SetPathways.cpp index 149f4fa..6d82c6d 100644 --- a/ZAPD/ZRoom/Commands/SetPathways.cpp +++ b/ZAPD/ZRoom/Commands/SetPathways.cpp @@ -13,8 +13,8 @@ ZSetPathways::ZSetPathways(ZFile* nParent) : ZResource(nParent) { } -ZSetPathways::ZSetPathways(ZRoom* nZRoom, const std::vector<uint8_t>& nRawData, uint32_t nRawDataIndex, - bool nIsFromHeader) +ZSetPathways::ZSetPathways(ZRoom* nZRoom, const std::vector<uint8_t>& nRawData, + uint32_t nRawDataIndex, bool nIsFromHeader) : ZResource(nZRoom->parent), ZRoomCommand(nZRoom, nRawData, nRawDataIndex) { rawData = nRawData; @@ -55,8 +55,8 @@ void ZSetPathways::ParseRawData() parent->AddDeclarationPlaceholder(segmentOffset); int32_t numPaths = (Globals::Instance->game != ZGame::MM_RETAIL) ? - 1 : - zRoom->GetDeclarationSizeFromNeighbor(segmentOffset) / 8; + 1 : + zRoom->GetDeclarationSizeFromNeighbor(segmentOffset) / 8; pathwayList = new PathwayList(parent, rawData, segmentOffset, numPaths); } @@ -138,7 +138,8 @@ PathwayEntry::PathwayEntry(std::vector<uint8_t> rawData, uint32_t rawDataIndex) } } -PathwayList::PathwayList(ZFile* nParent, std::vector<uint8_t> rawData, uint32_t rawDataIndex, int32_t length) +PathwayList::PathwayList(ZFile* nParent, std::vector<uint8_t> rawData, uint32_t rawDataIndex, + int32_t length) { parent = nParent; _rawDataIndex = rawDataIndex; |
