summaryrefslogtreecommitdiff
path: root/src/cgame/cg_drawtools.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-14 23:56:20 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:51 +0000
commitfc8352965d47d726086baae033a283839bb1358c (patch)
treea46dd5f6e7885dd3b0fcc3d818e671b875e8ac4d /src/cgame/cg_drawtools.c
parent20b6c68b9511adddf32030f5785eb2667a7f0e8c (diff)
* Various small style fixes/corrections/changes (Undeference, Timbo, benmachine)
* Restore /ignore functionality to a couple message types I forgot (Undeference) * Fix some color bleeds on names (Rezyn) * Fix an uninitialized buffer in featured labels (Rezyn) * Apply team colors to only the letter and not the brackets too, in cg_chatteamprefix (Undeference) * Default cg_drawcrosshairs 2, crosshairs for everything (kevlarman)
Diffstat (limited to 'src/cgame/cg_drawtools.c')
-rw-r--r--src/cgame/cg_drawtools.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cgame/cg_drawtools.c b/src/cgame/cg_drawtools.c
index 17eb7ac6..726c4de9 100644
--- a/src/cgame/cg_drawtools.c
+++ b/src/cgame/cg_drawtools.c
@@ -412,17 +412,17 @@ CG_GetColorCharForHealth
char CG_GetColorCharForHealth( int clientnum )
{
char health_char = '2';
- int healthPercent;
- int maxHealth;
- int curWeaponClass = cgs.clientinfo[ clientnum ].curWeaponClass;
+ int healthPercent;
+ int maxHealth;
+ int curWeaponClass = cgs.clientinfo[ clientnum ].curWeaponClass;
if( cgs.clientinfo[ clientnum ].team == TEAM_ALIENS )
maxHealth = BG_Class( curWeaponClass )->health;
else
maxHealth = BG_Class( PCL_HUMAN )->health;
- healthPercent = (int) ( 100.0f * (float) cgs.clientinfo[ clientnum ].health
- / (float) maxHealth );
+ healthPercent = (int) ( 100.0f * (float) cgs.clientinfo[ clientnum ].health /
+ (float) maxHealth );
if( healthPercent < 33 )
health_char = '1';