]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make stepping up while jumping reliable
authorbones_was_here <bones_was_here@xa.org.au>
Fri, 18 Mar 2022 18:04:06 +0000 (18:04 +0000)
committerbones_was_here <bones_was_here@xa.org.au>
Fri, 18 Mar 2022 18:04:06 +0000 (18:04 +0000)
.gitlab-ci.yml
qcsrc/common/physics/movetypes/movetypes.qc

index f3d414f79e34d0ef2825c4cb5ab3d35aac91c347..296e493a04697977f731c32b3ae34b33619aa36a 100644 (file)
@@ -32,7 +32,7 @@ test_sv_game:
     - wget -O data/maps/stormkeep.waypoints https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints\r
     - wget -O data/maps/stormkeep.waypoints.cache https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints.cache\r
     - make\r
-    - EXPECT=c7e360b409c6ceddff9c1407ce4e2090\r
+    - EXPECT=5d093940aa7306533fdcf8f12579b316\r
     - HASH=$(${ENGINE} -noconfig -nohome +timestamps 1 +exec serverbench.cfg\r
       | tee /dev/stderr\r
       | sed -e 's,^\[[^]]*\] ,,'\r
index 64a31cdbf4a4ef3a133f444147e3edef86513e8e..48aa9dd106ca24f744de5e5f66d2307c6550e127 100644 (file)
@@ -227,7 +227,8 @@ int _Movetype_FlyMove(entity this, float dt, bool applygravity, bool applystepno
                        }
 
                        // accept the new position if it made some progress...
-                       if(fabs(this.origin_x - org.x) >= 0.03125 || fabs(this.origin_y - org.y) >= 0.03125)
+                       // previously this checked if absolute distance >= 0.03125 which made stepping up unreliable
+                       if(this.origin_x - org.x || this.origin_y - org.y)
                        {
                                trace_endpos = this.origin;
                                time_left *= 1 - trace2_fraction;