- Added edward850's patch to cope with stalled network games.
SVN r4285 (trunk)
This commit is contained in:
parent
167ee9e7fb
commit
78437d917c
4 changed files with 76 additions and 0 deletions
|
|
@ -1511,6 +1511,7 @@ void DBaseStatusBar::DrawTopStuff (EHudState state)
|
|||
}
|
||||
DrawMessages (HUDMSGLayer_OverHUD, (state == HUD_StatusBar) ? ::ST_Y : SCREENHEIGHT);
|
||||
DrawConsistancy ();
|
||||
DrawWaiting ();
|
||||
if (ShowLog && MustDrawLog(state)) DrawLog ();
|
||||
|
||||
if (noisedebug)
|
||||
|
|
@ -1612,6 +1613,39 @@ void DBaseStatusBar::DrawConsistancy () const
|
|||
}
|
||||
}
|
||||
|
||||
void DBaseStatusBar::DrawWaiting () const
|
||||
{
|
||||
int i;
|
||||
char conbuff[64], *buff_p;
|
||||
|
||||
if (!netgame)
|
||||
return;
|
||||
|
||||
buff_p = NULL;
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (playeringame[i] && players[i].waiting)
|
||||
{
|
||||
if (buff_p == NULL)
|
||||
{
|
||||
strcpy (conbuff, "Waiting for:");
|
||||
buff_p = conbuff + 12;
|
||||
}
|
||||
*buff_p++ = ' ';
|
||||
*buff_p++ = '1' + i;
|
||||
*buff_p = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (buff_p != NULL)
|
||||
{
|
||||
screen->DrawText (SmallFont, CR_ORANGE,
|
||||
(screen->GetWidth() - SmallFont->StringWidth (conbuff)*CleanXfac) / 2,
|
||||
SmallFont->GetHeight()*CleanYfac, conbuff, DTA_CleanNoMove, true, TAG_DONE);
|
||||
BorderTopRefresh = screen->GetPageCount ();
|
||||
}
|
||||
}
|
||||
|
||||
void DBaseStatusBar::FlashItem (const PClass *itemtype)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue