From: Martin Taibr Date: Mon, 26 Jun 2017 22:28:17 +0000 (+0200) Subject: use vec2 X-Git-Tag: xonotic-v0.8.5~2656^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad408a1ba68c65bef882a38e02c2893f465a6781;p=xonotic%2Fxonotic-data.pk3dir.git use vec2 --- diff --git a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc index 7da76f7ce..338f87e5d 100644 --- a/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc +++ b/qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc @@ -238,10 +238,7 @@ NET_HANDLE(damagetext, bool isNew) // screen coords only if (!autocvar_cl_damagetext_2d) return; - vector screen_pos = '0 0 0'; - screen_pos.x = vid_conwidth * autocvar_cl_damagetext_2d_pos.x; - screen_pos.y = vid_conheight * autocvar_cl_damagetext_2d_pos.y; - + vector screen_pos = vec2(vid_conwidth * autocvar_cl_damagetext_2d_pos.x, vid_conheight * autocvar_cl_damagetext_2d_pos.y); IL_EACH(g_drawables_2d, it.instanceOfDamageText && it.m_screen_coords && it.m_group == server_entity_index, { DamageText_update(it, screen_pos, it.m_healthdamage + health, it.m_armordamage + armor, it.m_potential_damage + potential_damage, deathtype); return;