diff options
author | Asa Kravets <norfenstein@gmail.com> | 2010-01-03 17:25:23 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:25 +0000 |
commit | eba0177930cac4c1935571654911cc3264328ddc (patch) | |
tree | 6a16d3568de27aff5134e2dcd8115c04958dec3a /src/cgame/cg_draw.c | |
parent | a7389070c1c77ed83d8f3c850267e2bc8b398209 (diff) |
* Renamed MAX_STAMINA to STAMINA_MAX and moved to tremulous.h
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r-- | src/cgame/cg_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 24b49747..ebdac7fd 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -378,7 +378,7 @@ static void CG_DrawPlayerStamina( int ownerDraw, rectDef_t *rect, { playerState_t *ps = &cg.snap->ps; float stamina = ps->stats[ STAT_STAMINA ]; - float maxStaminaBy3 = (float)MAX_STAMINA / 3.0f; + float maxStaminaBy3 = (float)STAMINA_MAX / 3.0f; float progress; vec4_t color; @@ -394,7 +394,7 @@ static void CG_DrawPlayerStamina( int ownerDraw, rectDef_t *rect, progress = stamina / maxStaminaBy3; break; case CG_PLAYER_STAMINA_4: - progress = ( stamina + MAX_STAMINA ) / MAX_STAMINA; + progress = ( stamina + STAMINA_MAX ) / STAMINA_MAX; break; default: return; |