From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 10 Jun 2023 00:11:58 +0000 (+0200) Subject: battle royale: remove vehicle waypoint if vehicle gets destroyed X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a41a5c667e49c60400f76fb3cba8759dfdba7e2b;p=xonotic%2Fxonotic-data.pk3dir.git battle royale: remove vehicle waypoint if vehicle gets destroyed --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 76237339c..8893bcd3e 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -710,6 +710,9 @@ void vehicles_damage(entity this, entity inflictor, entity attacker, float damag if(GetResource(this, RES_HEALTH) <= 0) { + if(this.br_vehicle_drop && this.waypointsprite_attached) + WaypointSprite_Kill(this.waypointsprite_attached); + if(this.owner) { if(this.vehicle_flags & VHF_DEATHEJECT)