summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 12:18:55 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:51 +0000
commitc89095f6d62ae7f35f3b0cad8c5c672860f84802 (patch)
treea383038a2bd5d6ffd3deabeb5788e5a7e9ec4f2e
parent4ba86dcaeb69e2b87a4d715b886bb89bfd72e8ce (diff)
* fix compiler warning
* remove reference to holding +button5 to repair in tutorial text
-rw-r--r--src/cgame/cg_tutorial.c11
-rw-r--r--src/game/g_local.h1
2 files changed, 1 insertions, 11 deletions
diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c
index 01d82e5c..2dd5a5a2 100644
--- a/src/cgame/cg_tutorial.c
+++ b/src/cgame/cg_tutorial.c
@@ -352,7 +352,6 @@ static void CG_HumanCkitText( char *text, playerState_t *ps )
{
buildable_t buildable = ps->stats[ STAT_BUILDABLE ] & ~SB_VALID_TOGGLEBIT;
entityState_t *es;
- float health;
if( buildable > BA_NONE )
{
@@ -371,16 +370,6 @@ static void CG_HumanCkitText( char *text, playerState_t *ps )
Q_strcat( text, MAX_TUTORIAL_TEXT,
va( "Press %s to build a structure\n",
CG_KeyNameForCommand( "+attack" ) ) );
-
- if( CG_BuildableInRange( ps, &health ) )
- {
- if( health < 1.0f )
- {
- Q_strcat( text, MAX_TUTORIAL_TEXT,
- va( "Hold %s to repair this structure\n",
- CG_KeyNameForCommand( "+button5" ) ) );
- }
- }
}
if( ( es = CG_BuildableInRange( ps, NULL ) ) )
diff --git a/src/game/g_local.h b/src/game/g_local.h
index e0a9cca1..d793a9e0 100644
--- a/src/game/g_local.h
+++ b/src/game/g_local.h
@@ -881,6 +881,7 @@ void SnapVectorTowards( vec3_t v, vec3_t to );
qboolean CheckVenomAttack( gentity_t *ent );
void CheckGrabAttack( gentity_t *ent );
qboolean CheckPounceAttack( gentity_t *ent );
+void CheckCkitRepair( gentity_t *ent );
void G_ChargeAttack( gentity_t *ent, gentity_t *victim );
void G_CrushAttack( gentity_t *ent, gentity_t *victim );
void G_UpdateZaps( gentity_t *ent );