From 40c247a8232b16f31313f0432d2b27a9a5e0fa30 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 5 Dec 2018 20:51:40 +0100 Subject: [PATCH] Small centerprint alignment fix. --- Source/Client/Draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Client/Draw.c b/Source/Client/Draw.c index a9d392f3..b6b039cd 100755 --- a/Source/Client/Draw.c +++ b/Source/Client/Draw.c @@ -128,7 +128,7 @@ void CSQC_DrawCenterprint( void ) { vCenterPrintPos_y = vVideoMins_y + ( vVideoResolution_y / 2 ) - ( fCenterPrintLines - 4 ); for ( int i = 0; i < ( fCenterPrintLines ); i++ ) { - vCenterPrintPos_x = vVideoMins_x + ( vVideoResolution_x / 2 ) - ( stringwidth( sCenterPrintBuffer[ i ], FALSE, '12 12' ) / 2 ); + vCenterPrintPos_x = vVideoMins_x + ( vVideoResolution_x / 2 ) - ( stringwidth( sCenterPrintBuffer[ i ], TRUE, '12 12' ) / 2 ); drawstring( vCenterPrintPos, sCenterPrintBuffer[ i ], '12 12', '1 1 1', fCenterPrintAlpha, 0 ); vCenterPrintPos_y += 8; }