summaryrefslogtreecommitdiff
path: root/src/cgame/cg_ents.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-07-21 01:42:41 +0000
committerTim Angus <tim@ngus.net>2005-07-21 01:42:41 +0000
commit48d452bba1e9845d7935e03c520623f0b65a136d (patch)
treea14ca612d27d7f254920771b1f0a0d0ceb55afe9 /src/cgame/cg_ents.c
parente98dcba13a94fb5c826d5d2e50d2a7bcc67040d1 (diff)
* Change death by dragoon obituary from "clawed" to "chomped"
* Fixed the bug where spectators saw team chat * Added ping display to the lagometer * Renormalised some balance variables * Fixed the bug where bodies would sometimes disappear immediately after death * Fixed the "dancing buildables" bug * Fixed the bug where buildable animation sounds were inappropriately played upon entering PVS * Fixed a subtle stage bug * Added code to indicate which stage a team is on via the scoreboard
Diffstat (limited to 'src/cgame/cg_ents.c')
-rw-r--r--src/cgame/cg_ents.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c
index 44779bf6..1ed6cb2e 100644
--- a/src/cgame/cg_ents.c
+++ b/src/cgame/cg_ents.c
@@ -889,10 +889,12 @@ CG_CEntityPVSEnter
*/
static void CG_CEntityPVSEnter( centity_t *cent )
{
+ entityState_t *es = &cent->currentState;
+
if( cg_debugPVS.integer )
CG_Printf( "Entity %d entered PVS\n", cent->currentState.number );
- switch( cent->currentState.eType )
+ switch( es->eType )
{
case ET_MISSILE:
CG_LaunchMissile( cent );
@@ -910,7 +912,8 @@ static void CG_CEntityPVSEnter( centity_t *cent )
//make sure that the buildable animations are in a consistent state
//when a buildable enters the PVS
- cent->buildableAnim = BANIM_NONE;
+ cent->buildableAnim = cent->lerpFrame.animationNumber = BANIM_NONE;
+ cent->oldBuildableAnim = es->legsAnim;
}