]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/items/items.qc
items: temp kludge to reduce visibility of prediction errors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / items / items.qc
index 3aef870e00a8b775257803ef20ce1270fc941067..46587b9c1d9e2a974a6fd654e46437d7c7c50d72 100644 (file)
@@ -205,6 +205,11 @@ void Item_Think(entity this)
                if (this.itemdef.instanceOfPowerup)
                        powerups_DropItem_Think(this);
 
+               // caution: kludge FIXME (with sv_legacy_bbox_expand)
+               // this works around prediction errors caused by bbox discrepancy between SVQC and CSQC
+               if (this.velocity == '0 0 0' && IS_ONGROUND(this))
+                       this.gravity = 0; // don't send ISF_DROP anymore
+
                // send slow updates even if the item didn't move
                // recovers prediction desyncs where server thinks item stopped, client thinks it didn't
                ItemUpdate(this);