diff options
| author | fig02 <fig02srl@gmail.com> | 2021-01-08 07:27:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 07:27:18 -0500 |
| commit | 6a97e0479b7b7ee3aa979303d76c4381d3efc813 (patch) | |
| tree | 56e3f7e4e0f8bc679545edb7cc596c5830718892 /ZAPD/ZDisplayList.cpp | |
| parent | ae3d5b9e51ff3645aa494154cc8f7a3c1bf8c354 (diff) | |
Replace RoomPoly with CollisionPoly (#66)
* small changes
* brackets
Diffstat (limited to 'ZAPD/ZDisplayList.cpp')
| -rw-r--r-- | ZAPD/ZDisplayList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ZAPD/ZDisplayList.cpp b/ZAPD/ZDisplayList.cpp index 73d500c..5da7688 100644 --- a/ZAPD/ZDisplayList.cpp +++ b/ZAPD/ZDisplayList.cpp @@ -370,14 +370,14 @@ string ZDisplayList::GetSourceOutputCode(const std::string& prefix) if (dListDecl != nullptr) sprintf(line, "gsSPBranchList(%s),", dListDecl->varName.c_str()); else - sprintf(line, "gsSPBranchList(%sDlist0x%06X),", prefix.c_str(), SEG2FILESPACE(data)); + sprintf(line, "gsSPBranchList(%sDlist0x%06lX),", prefix.c_str(), SEG2FILESPACE(data)); } else { if (dListDecl != nullptr) sprintf(line, "gsSPDisplayList(%s),", dListDecl->varName.c_str()); else - sprintf(line, "gsSPDisplayList(%sDlist0x%06X),", prefix.c_str(), SEG2FILESPACE(data)); + sprintf(line, "gsSPDisplayList(%sDlist0x%06lX),", prefix.c_str(), SEG2FILESPACE(data)); } int segmentNumber = (data & 0xFF000000) >> 24; @@ -548,7 +548,7 @@ string ZDisplayList::GetSourceOutputCode(const std::string& prefix) else { //sprintf(line, "gsDPSetTextureImage(%s, %s, %i, 0x%08X),", fmtTbl[fmt].c_str(), sizTbl[siz].c_str(), www + 1, data & 0xFFFFFFFF); - sprintf(line, "gsDPSetTextureImage(%s, %s, %i, %sTex_%06X),", fmtTbl[fmt].c_str(), sizTbl[siz].c_str(), www + 1, scene->GetName().c_str(), data & 0x00FFFFFF); + sprintf(line, "gsDPSetTextureImage(%s, %s, %i, %sTex_%06lX),", fmtTbl[fmt].c_str(), sizTbl[siz].c_str(), www + 1, scene->GetName().c_str(), data & 0x00FFFFFF); } } break; |
