mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
Move code down so declarations are above to appease C90
This commit is contained in:
parent
03150e5fe6
commit
eb81bea943
1 changed files with 4 additions and 4 deletions
|
@ -1262,10 +1262,6 @@ static inline void CL_DrawConnectionStatus(void)
|
||||||
}
|
}
|
||||||
else if (lastfilenum != -1)
|
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 dldlength;
|
||||||
INT32 totalfileslength;
|
INT32 totalfileslength;
|
||||||
UINT32 totaldldsize;
|
UINT32 totaldldsize;
|
||||||
|
@ -1273,6 +1269,10 @@ static inline void CL_DrawConnectionStatus(void)
|
||||||
fileneeded_t *file = &fileneeded[lastfilenum];
|
fileneeded_t *file = &fileneeded[lastfilenum];
|
||||||
char *filename = file->filename;
|
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();
|
Net_GetNetStat();
|
||||||
dldlength = (INT32)((file->currentsize/(double)file->totalsize) * 256);
|
dldlength = (INT32)((file->currentsize/(double)file->totalsize) * 256);
|
||||||
if (dldlength > 256)
|
if (dldlength > 256)
|
||||||
|
|
Loading…
Reference in a new issue