summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_shutter.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-03-17 22:26:56 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-03-17 22:26:56 -0400
commit822b13e57a978cb940abfdb2286588ad3c338b4d (patch)
tree7cb41bc9704d93c8659f4f0e596dcd503da6064f /src/d/actor/d_a_shutter.cpp
parent455ff4a5717c39b8d2fae08528eace46b7dc6d38 (diff)
Add `cPhs_State` typedef and use it everywhere
Diffstat (limited to 'src/d/actor/d_a_shutter.cpp')
-rw-r--r--src/d/actor/d_a_shutter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d/actor/d_a_shutter.cpp b/src/d/actor/d_a_shutter.cpp
index d823202a..cfa8f92e 100644
--- a/src/d/actor/d_a_shutter.cpp
+++ b/src/d/actor/d_a_shutter.cpp
@@ -65,7 +65,7 @@ BOOL daShutter_c::CreateHeap() {
}
/* 000002B8-000004B4 .text Create__11daShutter_cFv */
-s32 daShutter_c::Create() {
+BOOL daShutter_c::Create() {
fopAcM_SetMtx(this, mpModel[0]->getBaseTRMtx());
Vec cullMin = m_cull_min[mType];
Vec cullMax = m_cull_max[mType];
@@ -93,14 +93,14 @@ s32 daShutter_c::Create() {
if (m_close_ev_name[mType] != NULL) {
mCloseEventIdx = dComIfGp_evmng_getEventIdx(m_close_ev_name[mType], 0xff);
}
- return 1;
+ return TRUE;
}
/* 000004B4-000005A0 .text _create__11daShutter_cFv */
-s32 daShutter_c::_create() {
+cPhs_State daShutter_c::_create() {
fopAcM_SetupActor(this, daShutter_c);
mType = daShutter_prm::getType(this);
- int result = dComIfG_resLoad(&mPhs, m_arcname[mType]);
+ cPhs_State result = dComIfG_resLoad(&mPhs, m_arcname[mType]);
if (result == cPhs_COMPLEATE_e) {
if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, m_heapsize[mType])){
return cPhs_ERROR_e;
@@ -278,7 +278,7 @@ bool daShutter_c::_draw() {
}
/* 00000DD8-00000DF8 .text daShutter_Create__FPv */
-static s32 daShutter_Create(void* i_this) {
+static cPhs_State daShutter_Create(void* i_this) {
return ((daShutter_c*)i_this)->_create();
}