From: terencehill Date: Wed, 13 Feb 2013 12:58:36 +0000 (+0100) Subject: Small optimization of the freezetag/ca panel code (do the same for the dom panel... X-Git-Tag: xonotic-v0.7.0~61^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0ef99e5fbbfec0064c0bd6fb0857519451d6b041;p=xonotic%2Fxonotic-data.pk3dir.git Small optimization of the freezetag/ca panel code (do the same for the dom panel since the code is identical) --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index c9625ffd4..e14439aa8 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -3369,11 +3369,11 @@ void HUD_Mod_CA(vector myPos, vector mySize) int i; float row = 0, column = 0; + vector pos, itemSize; + itemSize = eX * mySize_x*(1/columns) + eY * mySize_y*(1/rows); for(i=0; i