summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-09-25 20:50:11 +0000
committerTim Angus <tim@ngus.net>2007-09-25 20:50:11 +0000
commit5cd9d03eefb0eeda9fc6595bb9c5da037e0b6116 (patch)
tree1e3ae87899f1b4698b00e9a9d353aa43e792e24b
parent899c8bb46cd255f821b1ffd09c668d730f5da8c9 (diff)
* Fix a few warnings introduced by the previous revision
-rw-r--r--src/game/g_buildable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 2b9fa394..a46477b6 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -2434,7 +2434,6 @@ void G_BuildableThink( gentity_t *ent, int msec )
int bHealth = BG_FindHealthForBuildable( ent->s.modelindex );
int bRegen = BG_FindRegenRateForBuildable( ent->s.modelindex );
int bTime = BG_FindBuildTimeForBuildable( ent->s.modelindex );
- int i;
//pack health, power and dcc
@@ -2696,7 +2695,10 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable,
spawn = BA_H_SPAWN;
}
else
+ {
Com_Error( ERR_FATAL, "team is %d\n", team );
+ return IBE_NONE;
+ }
// Simple non-marking case
if( !g_markDeconstruct.integer )