Skip to content

Commit

Permalink
medical: Clamp visual wound alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrukar authored and caligari87 committed Oct 21, 2023
1 parent 629b396 commit 68a610e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medical/module/medical_wound.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ extend class UaS_Wound {
BP.Flags = SPF_REPLACE;
BP.FadeStep = 0;
BP.Style = STYLE_Normal;
BP.StartAlpha = max((depth/width), 0.3);
BP.StartAlpha = min(1, max((depth/width), 0.3));
level.SpawnParticle(BP);

// Do appearing and drops running down body
Expand Down

0 comments on commit 68a610e

Please sign in to comment.