X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fcl_turrets.qc;h=48c6a8798981269b18d83e41c1351f0b23d41640;hp=c21e327d4470655336e6033d1823587c65f6e458;hb=8802dc71a56bfe87db766c6dab331046575f7eb9;hpb=702803d23d52e168bf1d18a46c1b763abe705a84 diff --git a/qcsrc/common/turrets/cl_turrets.qc b/qcsrc/common/turrets/cl_turrets.qc index c21e327d44..48c6a87989 100644 --- a/qcsrc/common/turrets/cl_turrets.qc +++ b/qcsrc/common/turrets/cl_turrets.qc @@ -67,13 +67,12 @@ void turret_draw2d(entity this) return; float dist = vlen(this.origin - view_origin); - float t = (entcs_GetTeam(player_localnum) + 1); vector o; string txt; if(autocvar_cl_vehicles_hud_tactical) - if(dist < 10240 && t != this.team) + if(dist < 10240 && (myteam + 1 != this.team)) { // TODO: Vehicle tactical hud o = project_3d_to_2d(this.origin + '0 0 32'); @@ -121,7 +120,7 @@ void turret_draw2d(entity this) else txt = spritelookuptext(this, spriteimage); - if(time - floor(time) > 0.5 && t == this.team) + if(time - floor(time) > 0.5 && (myteam + 1 == this.team)) { if(this.helpme && time < this.helpme) { @@ -163,7 +162,7 @@ void turret_draw2d(entity this) float crosshairdistance = sqrt( pow(o.x - vid_conwidth/2, 2) + pow(o.y - vid_conheight/2, 2) ); - t = waypointsprite_scale; + float t = waypointsprite_scale; a *= waypointsprite_alpha; {