]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
host: Check !host.restless instead of !cls.demoplayback for rand() call
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12851 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index dd48b2f0e0c1d09d3a54504ab5be24c48b7a9476..afa18ec2d8a5b357615b6aa2d650c6bd437afef6 100644 (file)
--- a/host.c
+++ b/host.c
@@ -389,7 +389,7 @@ double Host_Frame(double time)
        TaskQueue_Frame(false);
 
        // keep the random time dependent, but not when playing demos/benchmarking
-       if(!*sv_random_seed.string && !cls.demoplayback)
+       if(!*sv_random_seed.string && !host.restless)
                rand();
 
        NetConn_UpdateSockets();