Using RGB color constants where appropiate
This commit is contained in:
+4
-4
@@ -2898,13 +2898,13 @@ static u32 Cmd_FinishGame(struct BerryCrushGame *game, u8 *args)
|
||||
case 0:
|
||||
game->gameState = STATE_FINISHED;
|
||||
PlaySE(SE_M_STRENGTH);
|
||||
BlendPalettes(PALETTES_ALL, 8, RGB(31, 31, 0));
|
||||
BlendPalettes(PALETTES_ALL, 8, RGB_YELLOW);
|
||||
game->gfx.counter = 2;
|
||||
break;
|
||||
case 1:
|
||||
if (--game->gfx.counter != (u8)-1)
|
||||
return 0;
|
||||
BlendPalettes(PALETTES_ALL, 0, RGB(31, 31, 0));
|
||||
BlendPalettes(PALETTES_ALL, 0, RGB_YELLOW);
|
||||
game->gfx.vibrationIdx = 4;
|
||||
game->gfx.counter = 0;
|
||||
game->gfx.numVibrations = sIntroOutroVibrationData[game->gfx.vibrationIdx][0];
|
||||
@@ -2955,13 +2955,13 @@ static u32 Cmd_HandleTimeUp(struct BerryCrushGame *game, u8 *args)
|
||||
case 0:
|
||||
game->gameState = STATE_TIMES_UP;
|
||||
PlaySE(SE_FAILURE);
|
||||
BlendPalettes(PALETTES_ALL, 8, RGB(31, 0, 0));
|
||||
BlendPalettes(PALETTES_ALL, 8, RGB_RED);
|
||||
game->gfx.counter = 4;
|
||||
break;
|
||||
case 1:
|
||||
if (--game->gfx.counter != (u8)-1)
|
||||
return 0;
|
||||
BlendPalettes(PALETTES_ALL, 0, RGB(31, 0, 0));
|
||||
BlendPalettes(PALETTES_ALL, 0, RGB_RED);
|
||||
game->gfx.counter = 0;
|
||||
break;
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user