diff options
author | Tim Angus <tim@ngus.net> | 2009-10-11 01:04:07 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:46 +0000 |
commit | 9d8cf617d4a9c318e8c07f717df60973c4ec274c (patch) | |
tree | cc412c11e7074f25c45aa2c1f20f37ad336e15a3 /src/cgame | |
parent | 19ec3ab02940f56b4e927ff0e67ebcbab718ceb4 (diff) |
* Whitespace/floating point tweaks
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 292af56e..ea7d0a1c 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -2688,13 +2688,13 @@ for a few moments void CG_CenterPrint( const char *str, int y, int charWidth ) { char *s; - char newlineParsed[ MAX_STRING_CHARS ]; - const char *wrapped; - static int maxWidth = (int) ((2.0/3.0) * (double) SCREEN_WIDTH ); + char newlineParsed[ MAX_STRING_CHARS ]; + const char *wrapped; + static int maxWidth = (int)( ( 2.0f / 3.0f ) * (float)SCREEN_WIDTH ); Q_ParseNewlines( newlineParsed, str, sizeof( newlineParsed ) ); - - wrapped = Item_Text_Wrap( newlineParsed, 0.5, maxWidth ); + + wrapped = Item_Text_Wrap( newlineParsed, 0.5f, maxWidth ); Q_strncpyz( cg.centerPrint, wrapped, sizeof( cg.centerPrint ) ); |