From: Mario Date: Mon, 17 Apr 2017 02:25:01 +0000 (+1000) Subject: Also reset oldorigin when exiting vehicle X-Git-Tag: xonotic-v0.8.5~2832 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8a3ce5159c1b6daf393e2b078efe15abbc3ea5a;p=xonotic%2Fxonotic-data.pk3dir.git Also reset oldorigin when exiting vehicle --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index b469c5002..0c9ff29d9 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -870,6 +870,9 @@ void vehicles_exit(entity vehic, bool eject) CSQCMODEL_AUTOINIT(vehic); + if(player) + player.oldorigin = player.origin; // player's location is set by the exit functions, so we need to do this after everything + vehicles_exit_running = false; }