From fd37b424a64ca211b50132cb1f5e61135d1ca09b Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Mon, 9 Jul 2007 14:24:36 +0000 Subject: * (bug 3242) use correct medistat animation when unpowered (David Sev) --- src/game/g_buildable.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game') 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; } -- cgit