Move code down so declarations are above to appease C90

This commit is contained in:
Ashnal 2020-08-17 04:03:02 -04:00
parent 03150e5fe6
commit eb81bea943

View file

@ -1262,10 +1262,6 @@ static inline void CL_DrawConnectionStatus(void)
}
else if (lastfilenum != -1)
{
// Draw the bottom box.
M_DrawTextBox(BASEVIDWIDTH/2-128-8, BASEVIDHEIGHT-58-8, 32, 1);
V_DrawCenteredString(BASEVIDWIDTH/2, BASEVIDHEIGHT-58-14, V_YELLOWMAP, "Press ESC to abort");
INT32 dldlength;
INT32 totalfileslength;
UINT32 totaldldsize;
@ -1273,6 +1269,10 @@ static inline void CL_DrawConnectionStatus(void)
fileneeded_t *file = &fileneeded[lastfilenum];
char *filename = file->filename;
// Draw the bottom box.
M_DrawTextBox(BASEVIDWIDTH/2-128-8, BASEVIDHEIGHT-58-8, 32, 1);
V_DrawCenteredString(BASEVIDWIDTH/2, BASEVIDHEIGHT-58-14, V_YELLOWMAP, "Press ESC to abort");
Net_GetNetStat();
dldlength = (INT32)((file->currentsize/(double)file->totalsize) * 256);
if (dldlength > 256)