]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also reset oldorigin when exiting vehicle
authorMario <mario@smbclan.net>
Mon, 17 Apr 2017 02:25:01 +0000 (12:25 +1000)
committerMario <mario@smbclan.net>
Mon, 17 Apr 2017 02:25:01 +0000 (12:25 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index b469c500291b842560195be643adcf27bfb38d92..0c9ff29d913f9d7f306f98618d1f1cafbf4a8f4a 100644 (file)
@@ -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;
 }