Skip to content

Commit

Permalink
- missed one exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 6, 2019
1 parent 0a611e1 commit c95a07d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/d_net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ bool DoArbitrate (void *userdata)
return false;
}

void D_ArbitrateNetStart (void)
bool D_ArbitrateNetStart (void)
{
ArbitrateData data;
int i;
Expand Down Expand Up @@ -1604,7 +1604,7 @@ void D_ArbitrateNetStart (void)
StartScreen->NetInit ("Exchanging game information", 1);
if (!StartScreen->NetLoop (DoArbitrate, &data))
{
exit(0);
return false;
}

if (consoleplayer == Net_Arbitrator)
Expand All @@ -1621,6 +1621,7 @@ void D_ArbitrateNetStart (void)
}
}
StartScreen->NetDone();
return true;
}

static void SendSetup (uint32_t playersdetected[MAXNETNODES], uint8_t gotsetup[MAXNETNODES], int len)
Expand Down Expand Up @@ -1726,7 +1727,7 @@ bool D_CheckNetGame (void)
if (netgame)
{
GameConfig->ReadNetVars (); // [RH] Read network ServerInfo cvars
D_ArbitrateNetStart ();
if (!D_ArbitrateNetStart ()) return false;
}

// read values out of doomcom
Expand Down

0 comments on commit c95a07d

Please sign in to comment.