mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-08-31 18:03:07 -04:00
Update code_8006E9C0.c (#450)
This commit is contained in:
+1
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user