summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-06-30 14:34:03 +0000
committerSimon Howard2007-06-30 14:34:03 +0000
commit2aa8ec9e37dbf5b546ee1052c25c6686262bf624 (patch)
tree98acf7e9f3dbc889add212260d032f2ba3f6418b
parent71ff9b537e2ed9a34a33a7797c8b55d5077ab279 (diff)
downloadchocolate-doom-2aa8ec9e37dbf5b546ee1052c25c6686262bf624.tar.gz
chocolate-doom-2aa8ec9e37dbf5b546ee1052c25c6686262bf624.tar.bz2
chocolate-doom-2aa8ec9e37dbf5b546ee1052c25c6686262bf624.zip
Don't crash if there is a multiplayer demo in the demo loop.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 928
-rw-r--r--src/d_net.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/d_net.c b/src/d_net.c
index c0243e8c..b8ecd645 100644
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -413,11 +413,7 @@ static int GetLowTic(void)
int i;
int lowtic;
- if (demoplayback)
- {
- lowtic = maketic;
- }
- else
+ if (net_client_connected)
{
lowtic = INT_MAX;
@@ -430,6 +426,10 @@ static int GetLowTic(void)
}
}
}
+ else
+ {
+ lowtic = maketic;
+ }
return lowtic;
}