mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-01-19 08:01:55 +00:00
spectator fix
This commit is contained in:
parent
8ee196b4a2
commit
452a6bb540
1 changed files with 5 additions and 5 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.22 2002/06/11 23:38:43 niceass
|
||||
// spectator fix
|
||||
//
|
||||
// Revision 1.21 2002/06/10 13:20:03 slicer
|
||||
// RefID is now passed trought scoreboard, no more lca cvar, only cg.lca
|
||||
//
|
||||
|
@ -478,15 +481,12 @@ void CG_PredictPlayerState( void ) {
|
|||
cg_pmove.ps = &cg.predictedPlayerState;
|
||||
cg_pmove.trace = CG_Trace;
|
||||
cg_pmove.pointcontents = CG_PointContents;
|
||||
if ( cg_pmove.ps->pm_type == PM_DEAD ) {
|
||||
cg_pmove.tracemask = MASK_PLAYERSOLID & ~CONTENTS_BODY;
|
||||
if ( cg_pmove.ps->pm_type == PM_DEAD || cg_pmove.ps->pm_type == PM_SPECTATOR ) {
|
||||
cg_pmove.tracemask = 0; //NiceAss: User can go through anything. Before it was: MASK_PLAYERSOLID & ~CONTENTS_BODY;
|
||||
}
|
||||
else {
|
||||
cg_pmove.tracemask = MASK_PLAYERSOLID;
|
||||
}
|
||||
if ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_SPECTATOR ) {
|
||||
cg_pmove.tracemask = 0; // NiceAss: spectators can fly through everything
|
||||
}
|
||||
|
||||
// JBravo: fixing telefragging and shit during spawing (Thanks NiceAss! :)
|
||||
if ((cg.snap->ps.stats[STAT_RQ3] & RQ3_PLAYERSOLID) != RQ3_PLAYERSOLID) {
|
||||
|
|
Loading…
Reference in a new issue