summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-26 19:11:43 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:08 +0000
commit86509e9172baeb702ca8343120791fefdf663bfa (patch)
treed89f28ae5b172940b613e9a360f13759a4bf9d1b /src/cgame/cg_draw.c
parent54161abc42b98c89604eeea5bf960eb48407f6b8 (diff)
* Tutorial text no longer prints how to use a buildable if you aren't near a usable buildable
* Tutorial text explains low-stamina states
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index bbeb9848..ddfc9fb9 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -715,12 +715,18 @@ static void CG_DrawUsableBuildable( rectDef_t *rect, qhandle_t shader, vec4_t co
if( ( es->modelindex == BA_H_REACTOR || es->modelindex == BA_H_REPEATER ) &&
( !BG_Weapon( cg.snap->ps.weapon )->usesEnergy ||
BG_Weapon( cg.snap->ps.weapon )->infiniteAmmo ) )
+ {
+ cg.nearUsableBuildable = qfalse;
return;
+ }
trap_R_SetColor( color );
CG_DrawPic( rect->x, rect->y, rect->w, rect->h, shader );
trap_R_SetColor( NULL );
+ cg.nearUsableBuildable = qtrue;
}
+ else
+ cg.nearUsableBuildable = qfalse;
}
@@ -2903,7 +2909,7 @@ static void CG_DrawLighting( void )
cent = &cg_entities[ cg.snap->ps.clientNum ];
//fade to black if stamina is low
- if( ( cg.snap->ps.stats[ STAT_STAMINA ] < -800 ) &&
+ if( ( cg.snap->ps.stats[ STAT_STAMINA ] < STAMINA_BLACKOUT_LEVEL ) &&
( cg.snap->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) )
{
vec4_t black = { 0, 0, 0, 0 };