From 0cc4070263c9159760901dcb5e2b1ac6d97de86f Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Thu, 22 Oct 2009 08:25:20 +0000 Subject: * Fix UI_Text_Paint_Limit() function, which was printing a max of one character ever, but nothing was using it so nobody noticed (thanks Oopss) * Add ALIGN_NONE and VALIGN_NONE types for CG_Text_Align function * Slightly widen the location item on the default hud, since just a little bit more fits most maps better * Prevent seeing crosshair playername text for players on the other team while in SPECTATOR_LOCKED * Fix formatting nitpick from a few revisions ago --- src/ui/ui_shared.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui') diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 524df189..6e046147 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -2192,10 +2192,11 @@ static void UI_Text_Paint_Generic( float x, float y, float scale, float gapAdjus s++; count++; - if( maxX ) - *maxX = x; } + if( maxX ) + *maxX = x; + // paint cursor if( cursorPos >= 0 ) { -- cgit