From 564cfb33b401aff9e1de27257b9448c4555b6b8e Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 27 Oct 2018 20:39:41 +0100 Subject: [PATCH] Fade stuff! * Make the white intro fade always drawn, rather than potentially disable-able through tab or HUD disable. * Slightly increase the darkness of the intermission fade, since its current value had a negative effect on SKINCOLOR_SAPPHIRE. --- src/k_kart.c | 9 --------- src/st_stuff.c | 15 ++++++++++++--- src/y_inter.c | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 76670f17..0e405bbc 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -7509,15 +7509,6 @@ void K_drawKartHUD(void) || ((splitscreen > 2 && stplyr == &players[fourthdisplayplayer]) && !camera4.chase)) K_drawKartFirstPerson(); - // Draw a white fade on level opening - if (leveltime < 15 && stplyr == &players[displayplayer]) - { - if (leveltime <= 5) - V_DrawFill(0,0,BASEVIDWIDTH,BASEVIDHEIGHT,120); // Pure white on first few frames, to hide SRB2's awful level load artifacts - else - V_DrawFadeScreen(120, 15-leveltime); // Then gradually fade out from there - } - if (splitscreen == 2) // Player 4 in 3P is the minimap :p K_drawKartMinimap(); diff --git a/src/st_stuff.c b/src/st_stuff.c index 5ba00015..b7384f21 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -1903,13 +1903,13 @@ static void ST_overlayDrawer(void) if(!P_IsLocalPlayer(stplyr)) { - char name[MAXPLAYERNAME+1]; + /*char name[MAXPLAYERNAME+1]; // shorten the name if its more than twelve characters. - strlcpy(name, player_names[stplyr-players], 13); + strlcpy(name, player_names[stplyr-players], 13);*/ // Show name of player being displayed V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-40, 0, M_GetText("Viewpoint:")); - V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-32, V_ALLOWLOWERCASE, name); + V_DrawCenteredString((BASEVIDWIDTH/2), BASEVIDHEIGHT-32, V_ALLOWLOWERCASE, player_names[stplyr-players]); } // This is where we draw all the fun cheese if you have the chasecam off! @@ -2065,4 +2065,13 @@ void ST_Drawer(void) if (mapheaderinfo[gamemap-1]->typeoflevel & TOL_TV) // Very specific Midnight Channel stuff. ST_MayonakaStatic(); } + + // Draw a white fade on level opening + if (leveltime < 15) + { + if (leveltime <= 5) + V_DrawFill(0,0,BASEVIDWIDTH,BASEVIDHEIGHT,120); // Pure white on first few frames, to hide SRB2's awful level load artifacts + else + V_DrawFadeScreen(120, 15-leveltime); // Then gradually fade out from there + } } diff --git a/src/y_inter.c b/src/y_inter.c index 9361dbe3..c779ee3c 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -348,7 +348,7 @@ void Y_IntermissionDrawer(void) V_DrawPatchFill(bgtile); if (usebuffer) // Fade everything out - V_DrawFadeScreen(0xFF00, 20); + V_DrawFadeScreen(0xFF00, 22); if (!splitscreen) whiteplayer = demoplayback ? displayplayer : consoleplayer;