summaryrefslogtreecommitdiff
path: root/src/REL/d/a/obj/d_a_obj_sun_light.cpp
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-09-15 21:40:03 +0200
committerGitHub <noreply@github.com>2024-09-15 15:40:03 -0400
commit508d5b9e720f81ebf8148fd07faef1c61e9901b2 (patch)
tree825ec260b4628de8585f50997008ec61a109951f /src/REL/d/a/obj/d_a_obj_sun_light.cpp
parent732a119127b8a5d53092c16f12a37b47e8248fd1 (diff)
Actor cleanup (#32)
* Actor cleanup --------- Co-authored-by: elijah-thomas774 <elijahthomas774@gmail.com>
Diffstat (limited to 'src/REL/d/a/obj/d_a_obj_sun_light.cpp')
-rw-r--r--src/REL/d/a/obj/d_a_obj_sun_light.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/REL/d/a/obj/d_a_obj_sun_light.cpp b/src/REL/d/a/obj/d_a_obj_sun_light.cpp
index d1983877..656dea2d 100644
--- a/src/REL/d/a/obj/d_a_obj_sun_light.cpp
+++ b/src/REL/d/a/obj/d_a_obj_sun_light.cpp
@@ -19,9 +19,7 @@ bool dAcOsunLight_c::createHeap() {
}
int dAcOsunLight_c::create() {
- if (!initAllocatorWork1Heap(-1, "dAcOsunLight_c::m_allocator", 0x20)) {
- return FAILED;
- }
+ CREATE_ALLOCATOR(dAcOsunLight_c);
mModel.setAnm(mTexAnm);
mStateMgr.changeState(StateID_Wait);
@@ -31,7 +29,7 @@ int dAcOsunLight_c::create() {
}
int dAcOsunLight_c::doDelete() {
- return 1;
+ return SUCCEEDED;
}
int dAcOsunLight_c::actorExecute() {
@@ -41,14 +39,14 @@ int dAcOsunLight_c::actorExecute() {
}
updateMatrix();
mModel.setLocalMtx(worldMatrix);
- return 1;
+ return SUCCEEDED;
}
int dAcOsunLight_c::draw() {
if (isDay()) {
drawModelType1(&mModel);
}
- return 1;
+ return SUCCEEDED;
}
void dAcOsunLight_c::initializeState_Wait() {}