commit 2aa8ec9e37dbf5b546ee1052c25c6686262bf624
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Jun 30 14:34:03 2007 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sat Jun 30 14:34:03 2007 +0000
Don't crash if there is a multiplayer demo in the demo loop.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 928
---
src/d_net.c | 10 +++++-----
1 file 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;
}