From: Mario Date: Fri, 29 Jul 2016 10:57:08 +0000 (+1000) Subject: Fix auxiliary crosshairs not appearing when re-entering the vehicle X-Git-Tag: xonotic-v0.8.2~700^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e496c73feafad34d2ec7307dac876a0dafb70086;p=xonotic%2Fxonotic-data.pk3dir.git Fix auxiliary crosshairs not appearing when re-entering the vehicle --- diff --git a/qcsrc/common/vehicles/cl_vehicles.qc b/qcsrc/common/vehicles/cl_vehicles.qc index f7e7ca025..aeb7de83b 100644 --- a/qcsrc/common/vehicles/cl_vehicles.qc +++ b/qcsrc/common/vehicles/cl_vehicles.qc @@ -63,6 +63,7 @@ NET_HANDLE(ENT_CLIENT_AUXILIARYXHAIR, bool isnew) axh.axh_image = vCROSS_HINT; axh.alpha = 1; AuxiliaryXhair[axh_id] = axh; + IL_PUSH(g_drawables_2d, axh); } if(sf & 2) @@ -81,7 +82,6 @@ NET_HANDLE(ENT_CLIENT_AUXILIARYXHAIR, bool isnew) axh.cnt = time; axh.draw2d = AuxiliaryXhair_Draw2D; - if (isnew) IL_PUSH(g_drawables_2d, axh); return true; } @@ -126,6 +126,7 @@ NET_HANDLE(TE_CSQC_VEHICLESETUP, bool isnew) axh.axh_image = vCROSS_HINT; axh.alpha = 1; AuxiliaryXhair[i] = axh; + IL_PUSH(g_drawables_2d, axh); } if(hud_id == HUD_BUMBLEBEE_GUN)