Name the possible return values of palette fading functions

Also replace implicit conversion from gPalette.active into a status with
if statements, to make the return value clear.

I've also added comments when the check is redundant.
This commit is contained in:
Phlosioneer
2019-02-09 21:50:12 -05:00
parent 6f1d2b870c
commit 37bea25b01
2 changed files with 26 additions and 12 deletions

View File

@@ -9,6 +9,11 @@
#define PLTT_BUFFER_SIZE 0x200
#define PLTT_DECOMP_BUFFER_SIZE (PLTT_BUFFER_SIZE * 2)
#define PALETTE_FADE_STATUS_DELAY 2
#define PALETTE_FADE_STATUS_ACTIVE 1
#define PALETTE_FADE_STATUS_DONE 0
#define PALETTE_FADE_STATUS_LOADING -1
enum
{
FAST_FADE_IN_FROM_WHITE,