From 26f07196ea0ff05e1335992d1c138aaef6b41451 Mon Sep 17 00:00:00 2001 From: xiaodo <1079114958@qq.com> Date: Sat, 5 Oct 2024 03:25:34 +0800 Subject: [PATCH] engine: Format Codes. --- engine/client/cl_game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index c5fd127a..eceb0d82 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -262,7 +262,7 @@ static int CL_AdjustXPos( float x, int width, int totalWidth ) xPos = x * clgame.scrInfo.iWidth; } - if( xPos + width > clgame.scrInfo.iWidth) + if( xPos + width > clgame.scrInfo.iWidth ) xPos = clgame.scrInfo.iWidth - width; else if( xPos < 0 ) xPos = 0; @@ -283,7 +283,7 @@ static int CL_AdjustYPos( float y, int height ) if( y == -1 ) // centered? { - yPos = (clgame.scrInfo.iHeight - height ) * 0.5f; + yPos = ( clgame.scrInfo.iHeight - height ) * 0.5f; } else { @@ -294,7 +294,7 @@ static int CL_AdjustYPos( float y, int height ) yPos = y * clgame.scrInfo.iHeight; } - if( yPos + height > clgame.scrInfo.iHeight) + if( yPos + height > clgame.scrInfo.iHeight ) yPos = clgame.scrInfo.iHeight - height; else if( yPos < 0 ) yPos = 0;