Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent alpha underflow (bug #14503)
Shadows - like most ghost units - have varying alpha levels as part of their animation, however, the Shadow also has the Nightstalker ability which reduces alpha by 0.5 (invisible unit). As a result, there is an alpha underflow when the animation frames vary from -0.1 to 0.3. By using a multiplication instead of an addition-1, as suggested by CelticMinstrel, the alpha variation becomes 0.2 to 0.4, avoiding the underflow and making the Shadow slightly less translucent at night.
- Loading branch information