Skip to content

Commit

Permalink
fix poof alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Baezon committed Jul 3, 2024
1 parent 83d0727 commit 840759d
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 840759d

Please sign in to comment.