summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-08-19 00:07:00 +0000
committerTim Angus <tim@ngus.net>2001-08-19 00:07:00 +0000
commit50bd6599085e04dbe215fcb347811877fecc39a5 (patch)
treee3e3a58522ee4445cd6a096bd978cfc121bcdb50 /src
parent622f3c50b5ea54aa7d4d3b543c81943ffe33e1b9 (diff)
Bug fix to itemFits
Diffstat (limited to 'src')
-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 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 )
{