From b8a3ce5159c1b6daf393e2b078efe15abbc3ea5a Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 17 Apr 2017 12:25:01 +1000 Subject: [PATCH] Also reset oldorigin when exiting vehicle --- qcsrc/common/vehicles/sv_vehicles.qc | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.2