diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-07-13 01:17:05 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-12 19:17:05 -0600 |
| commit | 83794793e31ca208aca4661d70bdad813eb7f7dd (patch) | |
| tree | adc45624a95b91df0076b087da86f3def5fcb6a2 | |
| parent | f1b20c7b91f4f05dd0354ef32245f2204a82295a (diff) | |
Update code_8006E9C0.c (#450)
| -rw-r--r-- | src/code_8006E9C0.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/code_8006E9C0.c b/src/code_8006E9C0.c index 12e00edcd..690f44e98 100644 --- a/src/code_8006E9C0.c +++ b/src/code_8006E9C0.c @@ -524,8 +524,7 @@ void init_cloud_object(s32 objectIndex, s32 arg1, CloudData* arg2) { temp_v0->unk_09E = arg2->posY; temp_v0->sizeScaling = (f32) arg2->scalePercent / 100.0; if (GameEngine_ResourceGetTexTypeByName(CM_GetProps()->CloudTexture) != 1) { - int width = ResourceGetTexWidthByName(CM_GetProps()->CloudTexture); - temp_v0->activeTexture = LOAD_ASSET_RAW(CM_GetProps()->CloudTexture) + (arg2->subType * width * width * 1); + temp_v0->activeTexture = ((u8*) LOAD_ASSET_RAW(CM_GetProps()->CloudTexture)) + (arg2->subType * 1024); func_80073404(objectIndex, 0x40U, 0x20U, D_0D005FB0); } else { temp_v0->activeTexture = CM_GetProps()->CloudTexture; |
