mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-12 06:50:59 +00:00
- SW: Remove unused bool DrawScreen
from draw screen code.
This commit is contained in:
parent
c9e33b92cc
commit
7c7eb038d8
1 changed files with 2 additions and 14 deletions
|
@ -65,7 +65,6 @@ int display_mirror;
|
||||||
static int OverlapDraw = false;
|
static int OverlapDraw = false;
|
||||||
extern bool QuitFlag, SpriteInfo;
|
extern bool QuitFlag, SpriteInfo;
|
||||||
extern bool Voxel;
|
extern bool Voxel;
|
||||||
bool DrawScreen;
|
|
||||||
extern int f_c;
|
extern int f_c;
|
||||||
|
|
||||||
extern TILE_INFO_TYPE aVoxelArray[MAXTILES];
|
extern TILE_INFO_TYPE aVoxelArray[MAXTILES];
|
||||||
|
@ -1137,9 +1136,7 @@ void drawscreen(PLAYER* pp, double interpfrac, bool sceneonly)
|
||||||
// prediction player if prediction is on, else regular player
|
// prediction player if prediction is on, else regular player
|
||||||
PLAYER* camerapp = (PredictionOn && CommEnabled && pp == Player+myconnectindex) ? ppp : pp;
|
PLAYER* camerapp = (PredictionOn && CommEnabled && pp == Player+myconnectindex) ? ppp : pp;
|
||||||
|
|
||||||
DrawScreen = true;
|
|
||||||
PreDraw();
|
PreDraw();
|
||||||
|
|
||||||
PreUpdatePanel(interpfrac);
|
PreUpdatePanel(interpfrac);
|
||||||
|
|
||||||
if (!sceneonly)
|
if (!sceneonly)
|
||||||
|
@ -1228,10 +1225,7 @@ void drawscreen(PLAYER* pp, double interpfrac, bool sceneonly)
|
||||||
RestorePortalState();
|
RestorePortalState();
|
||||||
|
|
||||||
if (sceneonly)
|
if (sceneonly)
|
||||||
{
|
|
||||||
DrawScreen = false;
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
MarkSectorSeen(pp->cursector);
|
MarkSectorSeen(pp->cursector);
|
||||||
|
|
||||||
|
@ -1285,16 +1279,10 @@ void drawscreen(PLAYER* pp, double interpfrac, bool sceneonly)
|
||||||
DrawText(twod, font, CR_UNTRANSLATED, 160-w, 100, str, DTA_FullscreenScale, FSMode_Fit320x200, TAG_DONE);
|
DrawText(twod, font, CR_UNTRANSLATED, 160-w, 100, str, DTA_FullscreenScale, FSMode_Fit320x200, TAG_DONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CommEnabled && (pp->Flags & PF_DEAD))
|
if (!CommEnabled && (pp->Flags & PF_DEAD) && ReloadPrompt)
|
||||||
{
|
|
||||||
if (ReloadPrompt)
|
|
||||||
{
|
|
||||||
ReloadPrompt = false;
|
ReloadPrompt = false;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
PostDraw();
|
PostDraw();
|
||||||
DrawScreen = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GameInterface::GenerateSavePic()
|
bool GameInterface::GenerateSavePic()
|
||||||
|
|
Loading…
Reference in a new issue