diff options
-rw-r--r-- | src/cgame/cg_local.h | 1 | ||||
-rw-r--r-- | src/cgame/cg_main.c | 1 | ||||
-rw-r--r-- | src/cgame/cg_predict.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index 7beadaac..559eeefe 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -945,6 +945,7 @@ typedef struct // prediction state qboolean hyperspace; // true if prediction has hit a trigger_teleport playerState_t predictedPlayerState; + pmoveExt_t pmext; centity_t predictedPlayerEntity; qboolean validPPS; // clear until the first call to CG_PredictPlayerState int predictedErrorTime; diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 30eb134a..cf5eeebe 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -1713,6 +1713,7 @@ void CG_Init( int serverMessageNum, int serverCommandSequence, int clientNum ) // clear everything memset( &cgs, 0, sizeof( cgs ) ); memset( &cg, 0, sizeof( cg ) ); + memset( &cg.pmext, 0, sizeof( cg.pmext ) ); memset( cg_entities, 0, sizeof( cg_entities ) ); cg.clientNum = clientNum; diff --git a/src/cgame/cg_predict.c b/src/cgame/cg_predict.c index 926d9881..a94abf94 100644 --- a/src/cgame/cg_predict.c +++ b/src/cgame/cg_predict.c @@ -453,6 +453,7 @@ void CG_PredictPlayerState( void ) // prepare for pmove cg_pmove.ps = &cg.predictedPlayerState; + cg_pmove.pmext = &cg.pmext; cg_pmove.trace = CG_Trace; cg_pmove.pointcontents = CG_PointContents; cg_pmove.debugLevel = cg_debugMove.integer; |