]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Net: allow overriding CSQCPLAYER_FORCE_UPDATES
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 4 Nov 2015 09:44:10 +0000 (20:44 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 4 Nov 2015 09:51:20 +0000 (20:51 +1100)
qcsrc/common/csqcmodel_settings.qh
qcsrc/lib/csqcmodel/sv_model.qc

index eacc1947e1be0e9a29edbd48b30717db47701594..29a0bf44a599f909796953c9937e41caec87fdc0 100644 (file)
@@ -76,7 +76,9 @@
        CSQCPlayer_SetViewLocation();
 
 // force updates of player entities that often even if unchanged
+#ifndef CSQCPLAYER_FORCE_UPDATES
 #define CSQCPLAYER_FORCE_UPDATES 0.25
+#endif
 
 // mod must define:
 //vector PL_MIN  = ...;
index 012149887fb5bd4f0a1f356791c7945b1a33ef9a..cadb77467cd97605131d50edd425d8b03508dd9d 100644 (file)
@@ -61,7 +61,7 @@ bool CSQCModel_Send(entity to, int sf)
        return true;
 }
 
-#ifdef CSQCPLAYER_FORCE_UPDATES
+#if CSQCPLAYER_FORCE_UPDATES
 .float csqcmodel_nextforcedupdate;
 #endif
 void CSQCModel_CheckUpdate(entity e)
@@ -75,7 +75,7 @@ void CSQCModel_CheckUpdate(entity e)
        unused_float = islocalplayer;
        unused_float = isnolocalplayer;
 
-#ifdef CSQCPLAYER_FORCE_UPDATES
+#if CSQCPLAYER_FORCE_UPDATES
        if(isplayer && time > e.csqcmodel_nextforcedupdate)
        {
                e.SendFlags |= CSQCMODEL_PROPERTY_ORIGIN;