Skip to content

Commit

Permalink
Effect generator gives effects a correct rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Loobinex committed Jan 20, 2025
1 parent 0f03908 commit 56833fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/thing_effects.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ TngUpdateRet process_effect_generator(struct Thing *thing)
elemtng->veloc_push_add.x.val += acc_x;
elemtng->veloc_push_add.y.val += acc_y;
elemtng->veloc_push_add.z.val += acc_z;
elemtng->move_angle_xy = LbArcTanAngle(acc_x, acc_y) & LbFPMath_AngleMask;
elemtng->state_flags |= TF1_PushAdd;
if (egenstat->sound_sample_idx > 0)
{
Expand Down

0 comments on commit 56833fe

Please sign in to comment.