summaryrefslogtreecommitdiff
path: root/src/cgame/cg_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_event.c')
-rw-r--r--src/cgame/cg_event.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index d5f30cb4..c8a3fab2 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -464,14 +464,14 @@ also called by CG_CheckPlayerstateEvents
#define DEBUGNAME(x) if(cg_debugEvents.integer){CG_Printf(x"\n");}
void CG_EntityEvent( centity_t *cent, vec3_t position ) {
entityState_t *es;
- int event;
- vec3_t dir;
+ int event;
+ vec3_t dir;
const char *s;
- int clientNum;
+ int clientNum;
clientInfo_t *ci;
- int steptime;
+ int steptime;
- BG_unpackAttributes( NULL, NULL, &steptime, cg.predictedPlayerState.stats );
+ steptime = BG_FindSteptimeForClass( cg.predictedPlayerState.stats[ STAT_PCLASS ] );
es = &cent->currentState;
event = es->event & ~EV_EVENT_BITS;