mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
Revert "Render title map on connecting to server screen too"
This reverts commit b6e145f0c5
.
This commit is contained in:
parent
23643e05c0
commit
a187460865
3 changed files with 65 additions and 67 deletions
117
src/d_main.c
117
src/d_main.c
|
@ -291,8 +291,11 @@ static void D_Display(void)
|
||||||
switch (gamestate)
|
switch (gamestate)
|
||||||
{
|
{
|
||||||
case GS_TITLESCREEN:
|
case GS_TITLESCREEN:
|
||||||
F_TitleScreenDrawer();
|
if (!titlemapinaction || !curbghide) {
|
||||||
break;
|
F_TitleScreenDrawer();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* FALLTHRU */
|
||||||
case GS_LEVEL:
|
case GS_LEVEL:
|
||||||
if (!gametic)
|
if (!gametic)
|
||||||
break;
|
break;
|
||||||
|
@ -363,11 +366,56 @@ static void D_Display(void)
|
||||||
|
|
||||||
// clean up border stuff
|
// clean up border stuff
|
||||||
// see if the border needs to be initially drawn
|
// see if the border needs to be initially drawn
|
||||||
if (gamestate == GS_LEVEL)
|
if (gamestate == GS_LEVEL || (gamestate == GS_TITLESCREEN && titlemapinaction && curbghide && (!hidetitlemap)))
|
||||||
{
|
{
|
||||||
// draw the view directly
|
// draw the view directly
|
||||||
|
|
||||||
D_Render();
|
if (!automapactive && !dedicated && cv_renderview.value)
|
||||||
|
{
|
||||||
|
if (players[displayplayer].mo || players[displayplayer].playerstate == PST_DEAD)
|
||||||
|
{
|
||||||
|
topleft = screens[0] + viewwindowy*vid.width + viewwindowx;
|
||||||
|
objectsdrawn = 0;
|
||||||
|
#ifdef HWRENDER
|
||||||
|
if (rendermode != render_soft)
|
||||||
|
HWR_RenderPlayerView(0, &players[displayplayer]);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
if (rendermode != render_none)
|
||||||
|
R_RenderPlayerView(&players[displayplayer]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// render the second screen
|
||||||
|
if (splitscreen && players[secondarydisplayplayer].mo)
|
||||||
|
{
|
||||||
|
#ifdef HWRENDER
|
||||||
|
if (rendermode != render_soft)
|
||||||
|
HWR_RenderPlayerView(1, &players[secondarydisplayplayer]);
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
if (rendermode != render_none)
|
||||||
|
{
|
||||||
|
viewwindowy = vid.height / 2;
|
||||||
|
M_Memcpy(ylookup, ylookup2, viewheight*sizeof (ylookup[0]));
|
||||||
|
|
||||||
|
topleft = screens[0] + viewwindowy*vid.width + viewwindowx;
|
||||||
|
|
||||||
|
R_RenderPlayerView(&players[secondarydisplayplayer]);
|
||||||
|
|
||||||
|
viewwindowy = 0;
|
||||||
|
M_Memcpy(ylookup, ylookup1, viewheight*sizeof (ylookup[0]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Image postprocessing effect
|
||||||
|
if (rendermode == render_soft)
|
||||||
|
{
|
||||||
|
if (postimgtype)
|
||||||
|
V_DoPostProcessor(0, postimgtype, postimgparam);
|
||||||
|
if (postimgtype2)
|
||||||
|
V_DoPostProcessor(1, postimgtype2, postimgparam2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (lastdraw)
|
if (lastdraw)
|
||||||
{
|
{
|
||||||
|
@ -380,9 +428,14 @@ static void D_Display(void)
|
||||||
lastdraw = false;
|
lastdraw = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ST_Drawer();
|
if (gamestate == GS_LEVEL)
|
||||||
F_TextPromptDrawer();
|
{
|
||||||
HU_Drawer();
|
ST_Drawer();
|
||||||
|
F_TextPromptDrawer();
|
||||||
|
HU_Drawer();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
F_TitleScreenDrawer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -494,56 +547,6 @@ static void D_Display(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void D_Render(void)
|
|
||||||
{
|
|
||||||
if (!automapactive && !dedicated && cv_renderview.value)
|
|
||||||
{
|
|
||||||
if (players[displayplayer].mo || players[displayplayer].playerstate == PST_DEAD)
|
|
||||||
{
|
|
||||||
topleft = screens[0] + viewwindowy*vid.width + viewwindowx;
|
|
||||||
objectsdrawn = 0;
|
|
||||||
#ifdef HWRENDER
|
|
||||||
if (rendermode != render_soft)
|
|
||||||
HWR_RenderPlayerView(0, &players[displayplayer]);
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
if (rendermode != render_none)
|
|
||||||
R_RenderPlayerView(&players[displayplayer]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// render the second screen
|
|
||||||
if (splitscreen && players[secondarydisplayplayer].mo)
|
|
||||||
{
|
|
||||||
#ifdef HWRENDER
|
|
||||||
if (rendermode != render_soft)
|
|
||||||
HWR_RenderPlayerView(1, &players[secondarydisplayplayer]);
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
if (rendermode != render_none)
|
|
||||||
{
|
|
||||||
viewwindowy = vid.height / 2;
|
|
||||||
M_Memcpy(ylookup, ylookup2, viewheight*sizeof (ylookup[0]));
|
|
||||||
|
|
||||||
topleft = screens[0] + viewwindowy*vid.width + viewwindowx;
|
|
||||||
|
|
||||||
R_RenderPlayerView(&players[secondarydisplayplayer]);
|
|
||||||
|
|
||||||
viewwindowy = 0;
|
|
||||||
M_Memcpy(ylookup, ylookup1, viewheight*sizeof (ylookup[0]));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Image postprocessing effect
|
|
||||||
if (rendermode == render_soft)
|
|
||||||
{
|
|
||||||
if (postimgtype)
|
|
||||||
V_DoPostProcessor(0, postimgtype, postimgparam);
|
|
||||||
if (postimgtype2)
|
|
||||||
V_DoPostProcessor(1, postimgtype2, postimgparam2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
// D_SRB2Loop
|
// D_SRB2Loop
|
||||||
// =========================================================================
|
// =========================================================================
|
||||||
|
|
|
@ -54,7 +54,4 @@ const char *D_Home(void);
|
||||||
void D_AdvanceDemo(void);
|
void D_AdvanceDemo(void);
|
||||||
void D_StartTitle(void);
|
void D_StartTitle(void);
|
||||||
|
|
||||||
/* Here for title maps */
|
|
||||||
void D_Render(void);
|
|
||||||
|
|
||||||
#endif //__D_MAIN__
|
#endif //__D_MAIN__
|
||||||
|
|
|
@ -2588,9 +2588,7 @@ void F_TitleScreenDrawer(void)
|
||||||
// Draw that sky!
|
// Draw that sky!
|
||||||
if (curbgcolor >= 0)
|
if (curbgcolor >= 0)
|
||||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, curbgcolor);
|
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, curbgcolor);
|
||||||
else if (titlemapinaction && curbghide && ! hidetitlemap)
|
else if (!curbghide || !titlemapinaction || gamestate == GS_WAITINGPLAYERS)
|
||||||
D_Render();
|
|
||||||
else
|
|
||||||
F_SkyScroll(curbgxspeed, curbgyspeed, curbgname);
|
F_SkyScroll(curbgxspeed, curbgyspeed, curbgname);
|
||||||
|
|
||||||
// Don't draw outside of the title screen, or if the patch isn't there.
|
// Don't draw outside of the title screen, or if the patch isn't there.
|
||||||
|
@ -3350,6 +3348,10 @@ void F_TitleScreenTicker(boolean run)
|
||||||
if (run)
|
if (run)
|
||||||
finalecount++;
|
finalecount++;
|
||||||
|
|
||||||
|
// don't trigger if doing anything besides idling on title
|
||||||
|
if (gameaction != ga_nothing || gamestate != GS_TITLESCREEN)
|
||||||
|
return;
|
||||||
|
|
||||||
// Execute the titlemap camera settings
|
// Execute the titlemap camera settings
|
||||||
if (titlemapinaction)
|
if (titlemapinaction)
|
||||||
{
|
{
|
||||||
|
@ -3396,10 +3398,6 @@ void F_TitleScreenTicker(boolean run)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't trigger if doing anything besides idling on title
|
|
||||||
if (gameaction != ga_nothing || gamestate != GS_TITLESCREEN)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// no demos to play? or, are they disabled?
|
// no demos to play? or, are they disabled?
|
||||||
if (!cv_rollingdemos.value || !numDemos)
|
if (!cv_rollingdemos.value || !numDemos)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue