diff options
author | garak <garakmon@gmail.com> | 2019-07-20 12:30:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 12:30:41 -0400 |
commit | c39d25ff4d3cf6cb8b3a6fea208de0cc3c6a7c8c (patch) | |
tree | bce0030d8901a6b84e705baca169989fff1a4f71 /src/ghost.c | |
parent | dfa3e079c0f55565fc60a6a1ba0ef04de9be94c2 (diff) | |
parent | 4d5c1ca03b4e7db3c44c71afaa01b1549a282a19 (diff) |
Merge branch 'master' into navdata
Diffstat (limited to 'src/ghost.c')
-rw-r--r-- | src/ghost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ghost.c b/src/ghost.c index 97b86aa76..dd29fb7ca 100644 --- a/src/ghost.c +++ b/src/ghost.c @@ -1148,7 +1148,8 @@ static void sub_8112B78(struct Sprite *sprite) if (++coeffB > 16) coeffB = 16; - if (--(s16)coeffA < 0) + --coeffA; + if ((s16)coeffA < 0) coeffA = 0; SetGpuReg(REG_OFFSET_BLDALPHA, BLDALPHA_BLEND(coeffA, coeffB)); |