summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_alink.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-09-04 07:56:59 -0700
committerGitHub <noreply@github.com>2025-09-04 17:56:59 +0300
commitb45a089e15d79821b07be020db628e01a49b1fd2 (patch)
tree948057548cc19b19d644bd4f300ca6434e6bff11 /src/d/actor/d_a_alink.cpp
parentee8b843996f4d888903f8c125b95ec1af376877e (diff)
some J3D/misc cleanup (#2628)
* some j3d cleanup * begin using uintptr_t * j3dgraphbase cleanup * j3dgraphanimator cleanup
Diffstat (limited to 'src/d/actor/d_a_alink.cpp')
-rw-r--r--src/d/actor/d_a_alink.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/actor/d_a_alink.cpp b/src/d/actor/d_a_alink.cpp
index 34d92145e0..ad4a66f55a 100644
--- a/src/d/actor/d_a_alink.cpp
+++ b/src/d/actor/d_a_alink.cpp
@@ -3925,7 +3925,7 @@ J3DModel* daAlink_c::initModel(J3DModelData* i_modelData, u32 mdlFlags, u32 diff
if (texNo >= 0) {
ResTIMG* timg = tex->getResTIMG(texNo);
- if (mpWarpTexData == (void*)((u32)timg + timg->imageOffset)) {
+ if (mpWarpTexData == (void*)((uintptr_t)timg + timg->imageOffset)) {
warpMaterial = true;
}
}
@@ -4002,7 +4002,7 @@ static int daAlink_Draw(daAlink_c* i_this);
/* 800A4068-800A4820 09E9A8 07B8+00 1/1 0/0 0/0 .text createHeap__9daAlink_cFv */
int daAlink_c::createHeap() {
ResTIMG* sp14 = (ResTIMG*)dComIfG_getObjectRes("Always", 0x5D);
- mpWarpTexData = (void*)((u32)sp14 + sp14->imageOffset);
+ mpWarpTexData = (void*)((uintptr_t)sp14 + sp14->imageOffset);
if (*dStage_roomControl_c::getDemoArcName() != 0) {
if (!initDemoModel(&mpDemoHLTmpModel, "demo00_Link_cut00_HL_tmp.bmd", 0x1000000)) {
@@ -14680,7 +14680,7 @@ void daAlink_c::setLight() {
spC4.z = light_m->field_0x18;
f32 var_f26;
- if ((u32)light_m == (u32)&daAlinkHIO_wlLight_c0::m) {
+ if ((uintptr_t)light_m == (uintptr_t)&daAlinkHIO_wlLight_c0::m) {
cXyz spD0 = eyePos - field_0x34e0;
s16 sp104 = spD0.atan2sY_XZ();
s16 sp106 = spD0.atan2sX_Z();