Skip to content

Commit

Permalink
Save the correct color intensities when faded out
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR committed Aug 4, 2019
1 parent 599ad88 commit b2ef65f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.txt
Expand Up @@ -4,6 +4,10 @@ USERS

+ Fixed a bug where mouse warping both mouse coordinates would
not actually warp both coordinates.
+ Fixed a port regression where save files would be saved with
the wrong color intensities while COLOR FADE OUT was active
(or during the first cycle of a board for <2.90 worlds). This
fixes fading bugs in Ruin Diver 3.

DEVELOPERS

Expand Down
2 changes: 2 additions & 0 deletions src/graphics.c
Expand Up @@ -544,6 +544,8 @@ void set_smzx_index(Uint32 col, Uint32 offset, Uint32 value)

Uint32 get_color_intensity(Uint32 color)
{
if(graphics.fade_status)
return graphics.saved_intensity[color];
return graphics.current_intensity[color];
}

Expand Down

0 comments on commit b2ef65f

Please sign in to comment.