From: Mircea Kitsune Date: Fri, 15 Apr 2011 21:23:31 +0000 (+0300) Subject: Fixes a major bug with g_multijump, causing insane speeds when respawning and pressin... X-Git-Tag: xonotic-v0.5.0~148^2~37^2^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e1ea117191866018eab28a0471caea77dd0e520e;p=xonotic%2Fxonotic-data.pk3dir.git Fixes a major bug with g_multijump, causing insane speeds when respawning and pressing jump + forward. Antilag takeback velocity compares origins to determine velocity over a given amount of time. And if this float isn't set, it compares the distance from where the player was and where he respawns, causing insane speeds. This is already set for teleporters, but this commit also adds it when respawning, since we are teleported to another origin. --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index a1047ea9d..c47ea5d20 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -975,6 +975,7 @@ void PutClientInServer (void) self.punchvector = '0 0 0'; self.oldvelocity = self.velocity; self.fire_endtime = -1; + self.lastteleporttime = time; msg_entity = self; WRITESPECTATABLE_MSG_ONE({