]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix minor bug with centerprint fading
authorSamual <samual@xonotic.org>
Mon, 3 Oct 2011 20:21:44 +0000 (16:21 -0400)
committerSamual <samual@xonotic.org>
Mon, 3 Oct 2011 20:21:44 +0000 (16:21 -0400)
qcsrc/client/hud.qc

index 76a2db6794315aa1372ae80f97ac2749d01fc6f7..fff7b5699a8d28ec64153f2559fda31d5218bc2b 100644 (file)
@@ -4610,8 +4610,9 @@ void HUD_CenterPrint (void)
                        a = (centerprint_expire_time[j] - time) / centerprint_fadetime;
                }
                
+               sz = 0.8 + a * (1 - 0.8); // change the size before the other fade effect
+               
                a = a * (bound(0.5, (1 - (i / 2)), 1) * bound(0.5, (1 - (i / 10)), 1));
-               sz = 0.8 + a * (1 - 0.8);
 
                drawfontscale = sz * '1 1 0';
                if (centerprint_countdown_num[j])