diff options
-rw-r--r-- | src/cgame/cg_draw.c | 10 | ||||
-rw-r--r-- | src/ui/ui_shared.c | 2 |
2 files changed, 6 insertions, 6 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 ) ); diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 28eb8758..25bbff2a 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -1834,7 +1834,7 @@ void Script_playLooped( itemDef_t *item, char **args ) } qboolean UI_Text_Emoticon( const char *s, qboolean *escaped, - int *length, qhandle_t *h, int *width ) + int *length, qhandle_t *h, int *width ) { char name[ MAX_EMOTICON_NAME_LEN ] = {""}; const char *p = s; |