Skip to content

Commit

Permalink
Merge pull request scp-fs2open#6225 from Baezon/fix-poof-alignment
Browse files Browse the repository at this point in the history
fix poof alignment
  • Loading branch information
Goober5000 authored Jul 4, 2024
2 parents 83d0727 + 840759d commit 200ef10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/nebula/neb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ void new_poof(size_t poof_info_idx, vec3d* pos) {
new_poof.rot_speed = fl_radians(pinfo->rotation.next());
new_poof.alpha = pinfo->alpha.next();
new_poof.anim_time = frand_range(0.0f, pinfo->bitmap.total_time);
if (pinfo->alignment != vmd_zero_vector)
if (pinfo->alignment == vmd_zero_vector)
vm_vec_rand_vec(&new_poof.up_vec);
else
new_poof.up_vec = pinfo->alignment;
Expand Down

0 comments on commit 200ef10

Please sign in to comment.