Set daObjAvalanche_c Matrix Properly

- Set the matrix properly instead of multiplying based on the previous one

Fixes an issue where the snow would not fall when bonking if you had bloom disabled
This commit is contained in:
SuperDude88
2026-05-27 19:36:19 -04:00
parent a85f8c203d
commit a9c8f44a86
+1 -1
View File
@@ -134,7 +134,7 @@ int daObjAvalanche_c::checkCollapse() {
local_28 = l_check_pos[0];
local_1c = l_check_pos[1];
cXyz playerDist = player->current.pos - current.pos;
mDoMtx_stack_c::YrotM(-shape_angle.y);
DUSK_IF_ELSE(mDoMtx_stack_c::YrotS(-shape_angle.y), mDoMtx_stack_c::YrotM(-shape_angle.y));
mDoMtx_stack_c::multVec(&playerDist, &playerDist);
if (player->current.pos.y > current.pos.y && player->current.pos.y < current.pos.y + 300.0f &&
playerDist.x > local_28.x && playerDist.x < local_1c.x && playerDist.z > local_28.z &&