Singleplayer crashfix.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7226 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-04-28 18:52:27 +00:00 committed by Git SVN Gateway
parent ebd93276a6
commit b8772dd066
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ BOOL intDisplayMultiJoiningStatus(UBYTE joinCount)
iV_DrawText(_("Players Still Joining"),
x+(w/2)-(iV_GetTextWidth(_("Players Still Joining"))/2),
y+(h/2)-8 );
if (!NetPlay.playercount)
{
return true;
}
sprintf(sTmp,"%d%%", PERCENT((NetPlay.playercount-joinCount),NetPlay.playercount) );
iV_DrawText(sTmp ,x + (w / 2) - 10, y + (h / 2) + 10);