X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fvehicles%2Fcl_vehicles.qc;h=3472a7f1c7e7e76747e0b056ef22c31d12c589ca;hp=a91e3e212abcac3e162aeb2d901200297003e7f3;hb=9ae63d858415772fdb60bd549758825103c0ba17;hpb=c6437cd43edc4489ad69746a30b5532f18c1af74 diff --git a/qcsrc/common/vehicles/cl_vehicles.qc b/qcsrc/common/vehicles/cl_vehicles.qc index a91e3e212..3472a7f1c 100644 --- a/qcsrc/common/vehicles/cl_vehicles.qc +++ b/qcsrc/common/vehicles/cl_vehicles.qc @@ -26,8 +26,8 @@ void vehicle_alarm(entity e, int ch, string s0und) _sound(e, ch, s0und, VOL_BASEVOICE, ATTEN_NONE); } -void AuxiliaryXhair_Draw2D() -{SELFPARAM(); +void AuxiliaryXhair_Draw2D(entity this) +{ if (scoreboard_showscores) return; @@ -106,8 +106,10 @@ void Net_VehicleSetup() { AuxiliaryXhair[0].axh_image = vCROSS_BURST; // Plasma cannons AuxiliaryXhair[1].axh_image = vCROSS_BURST; // Raygun + } else { + Vehicle info = get_vehicleinfo(hud_id); + info.vr_setup(info); } - else { VEH_ACTION(hud_id, VR_SETUP); } } void Vehicles_drawHUD(