summaryrefslogtreecommitdiff
path: root/src/m_Do/m_Do_ext.cpp
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2023-10-13 13:53:30 -0700
committerJasper St. Pierre <jstpierre@mecheye.net>2023-10-13 13:53:30 -0700
commit99c72d0371dd8ea2d3f56a8b95d54fe93229f82d (patch)
tree5123534de435388dce08209fe0b8752c9ec89660 /src/m_Do/m_Do_ext.cpp
parent8c92f794b9161b7dc995e8539d667d08106dc34a (diff)
d_ky_thunder start
Diffstat (limited to 'src/m_Do/m_Do_ext.cpp')
-rw-r--r--src/m_Do/m_Do_ext.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/m_Do/m_Do_ext.cpp b/src/m_Do/m_Do_ext.cpp
index 05972419..7281398e 100644
--- a/src/m_Do/m_Do_ext.cpp
+++ b/src/m_Do/m_Do_ext.cpp
@@ -725,7 +725,7 @@ void mDoExt_backupMaterial_c::restore(J3DModelData* i_modelData) {
}
/* 80011380-80011434 .text create__21mDoExt_invisibleModelFP8J3DModel */
-bool mDoExt_invisibleModel::create(J3DModel* model) {
+BOOL mDoExt_invisibleModel::create(J3DModel* model) {
J3DModelData* modelData = model->getModelData();
mpPackets = new mDoExt_invJntPacket[modelData->getJointNum()];
@@ -965,16 +965,13 @@ JKRSolidHeap* mDoExt_createSolidHeapFromGameToCurrent(u32 i_size, u32 i_alignmen
}
/* 80011D0C-80011D48 .text mDoExt_adjustSolidHeap__FP12JKRSolidHeap */
-u32 mDoExt_adjustSolidHeap(JKRSolidHeap* i_heap) {
- if (i_heap == NULL) {
+s32 mDoExt_adjustSolidHeap(JKRSolidHeap* i_heap) {
+ if (i_heap == NULL)
return 0;
- }
s32 result = i_heap->adjustSize();
-
- if (result >= (u32)0x80) {
+ if (result >= 0x80u)
result -= 0x80;
- }
return result;
}