]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin/terencehill/bot_waypoints' into terencehill...
authorterencehill <piuntn@gmail.com>
Sun, 24 Dec 2017 17:47:43 +0000 (18:47 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 24 Dec 2017 17:47:43 +0000 (18:47 +0100)
# Conflicts:
# qcsrc/common/triggers/trigger/jumppads.qc

1  2 
qcsrc/common/triggers/trigger/jumppads.qc
qcsrc/common/triggers/trigger/jumppads.qh
qcsrc/server/bot/default/bot.qc

index ded21c377e291b3584dbb77be51abf8c707d478a,d10a1e33037d69ae81b22943c8ab26ed8e5ffe63..5bb6d39877ac610803f0a9fb029db9d36420554b
@@@ -327,17 -325,7 +328,17 @@@ bool trigger_push_test(entity this, ent
                        entity e = spawn();
                        setsize(e, PL_MIN_CONST, PL_MAX_CONST);
                        e.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP;
-                       e.velocity = trigger_push_calculatevelocity(org, t, this.height);
+                       e.velocity = trigger_push_calculatevelocity(org, t, this.height, e);
 +
 +                      if(item)
 +                      {
 +                              setorigin(e, org);
 +                              tracetoss(e, e);
 +                              bool r = (trace_ent == item);
 +                              delete(e);
 +                              return r;
 +                      }
 +
                        vel = e.velocity;
                        vector best_target = '0 0 0';
                        vector best_org = '0 0 0';
Simple merge