ref: 2aa8ec9e37dbf5b546ee1052c25c6686262bf624
parent: 71ff9b537e2ed9a34a33a7797c8b55d5077ab279
author: Simon Howard <[email protected]>
date: Sat Jun 30 10:34:03 EDT 2007
Don't crash if there is a multiplayer demo in the demo loop. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 928
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -413,12 +413,8 @@
int i;
int lowtic;
- if (demoplayback)
+ if (net_client_connected)
{
- lowtic = maketic;
- }
- else
- {
lowtic = INT_MAX;
for (i=0; i<MAXPLAYERS; ++i)
@@ -429,6 +425,10 @@
lowtic = nettics[i];
}
}
+ }
+ else
+ {
+ lowtic = maketic;
}
return lowtic;