From 50bd6599085e04dbe215fcb347811877fecc39a5 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 19 Aug 2001 00:07:00 +0000 Subject: Bug fix to itemFits --- src/game/g_buildable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 04e246f8..bd01e49a 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -387,6 +387,7 @@ void ddef_fireonenemy( gentity_t *self, int firespeed ) //fire at target FireWeapon( self ); + G_setBuildableAnim( self, BANIM_ATTACK1 ); self->count = level.time + firespeed; } @@ -820,6 +821,7 @@ void hdef_fireonenemy( gentity_t *self, int firespeed ) { //fire at target FireWeapon( self ); + G_setBuildableAnim( self, BANIM_ATTACK1 ); self->count = level.time + firespeed; } @@ -1061,7 +1063,7 @@ itemBuildError_t itemFits( gentity_t *ent, buildable_t buildable, int distance ) //this item does not fit here if( tr1.fraction < 1.0 || tr2.fraction < 1.0 ) - reason = IBE_NOROOM; + return IBE_NOROOM; //NO other reason is allowed to override this if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS ) { -- cgit