summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2007-07-09 14:24:36 +0000
committerM. Kristall <mkpdev@gmail.com>2007-07-09 14:24:36 +0000
commitfd37b424a64ca211b50132cb1f5e61135d1ca09b (patch)
tree1abbb897880c1fba21539de9fe6c65cf8502882b /src
parent40d0cc3526e984b125ad77aebc428e4667a94e9e (diff)
* (bug 3242) use correct medistat animation when unpowered (David Sev)
Diffstat (limited to 'src')
-rw-r--r--src/game/g_buildable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index c3d3415f..78b83ea3 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1770,6 +1770,14 @@ void HMedistat_Think( gentity_t *self )
//make sure we have power
if( !( self->powered = G_FindPower( self ) ) )
{
+ if( self->active )
+ {
+ G_SetBuildableAnim( self, BANIM_CONSTRUCT2, qtrue );
+ G_SetIdleBuildableAnim( self, BANIM_IDLE1 );
+ self->active = qfalse;
+ self->enemy = NULL;
+ }
+
self->nextthink = level.time + POWER_REFRESH_TIME;
return;
}