mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Handle disconnections better.
Remove local sessions (just use ENet for everything instead) because they add far too much complexity. Fix memory leaks. This was SVN commit r7706.
This commit is contained in:
@@ -330,6 +330,14 @@ static void Frame()
|
||||
}
|
||||
PROFILE_END( "game logic" );
|
||||
|
||||
// Immediately flush any messages produced by simulation code
|
||||
PROFILE_START("network flush");
|
||||
if (g_NetServer)
|
||||
g_NetServer->Flush();
|
||||
if (g_NetClient)
|
||||
g_NetClient->Flush();
|
||||
PROFILE_END("network flush");
|
||||
|
||||
PROFILE_START( "update console" );
|
||||
g_Console->Update(TimeSinceLastFrame);
|
||||
PROFILE_END( "update console" );
|
||||
|
||||
Reference in New Issue
Block a user