X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Ftturrets.qc;h=6fe073e27e29e954c0d675ae40f4fcf2fe67106c;hp=c87418ea4be5c05497dc1e0dc9e24d4ec99865bf;hb=ae2c1407ec9a05e4f501a6604a7cce8e1030df9f;hpb=8b38ad6987192a2129a7aa55410fd6d729425a28 diff --git a/qcsrc/client/tturrets.qc b/qcsrc/client/tturrets.qc index c87418ea4b..6fe073e27e 100644 --- a/qcsrc/client/tturrets.qc +++ b/qcsrc/client/tturrets.qc @@ -278,22 +278,14 @@ void turret_draw2d() return; // Dont draw wp's for turrets out of view o.z = 0; if(hud != HUD_NORMAL) - { - switch(hud) - { - case HUD_SPIDERBOT: - case HUD_WAKIZASHI: - case HUD_RAPTOR: - case HUD_BUMBLEBEE: - if(self.turret_type == TID_EWHEEL || self.turret_type == TID_WALKER) - txt = "gfx/vehicles/turret_moving.tga"; - else - txt = "gfx/vehicles/turret_stationary.tga"; - - vector pz = drawgetimagesize(txt) * autocvar_cl_vehicles_crosshair_size; - drawpic(o - pz * 0.5, txt, pz , '1 1 1', 0.7, DRAWFLAG_NORMAL); - break; - } + { + if(self.turret_type == TID_EWHEEL || self.turret_type == TID_WALKER) + txt = "gfx/vehicles/vth-mover.tga"; + else + txt = "gfx/vehicles/vth-stationary.tga"; + + vector pz = drawgetimagesize(txt) * autocvar_cl_vehicles_crosshair_size; + drawpic(o - pz * 0.5, txt, pz , '1 1 1', 0.7, DRAWFLAG_NORMAL); } }