summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-11 01:04:07 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:46 +0000
commit9d8cf617d4a9c318e8c07f717df60973c4ec274c (patch)
treecc412c11e7074f25c45aa2c1f20f37ad336e15a3
parent19ec3ab02940f56b4e927ff0e67ebcbab718ceb4 (diff)
* Whitespace/floating point tweaks
-rw-r--r--src/cgame/cg_draw.c10
-rw-r--r--src/ui/ui_shared.c2
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;