mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-24 21:01:17 +00:00
Mercury: thanks for pointing out that the player entity number /is/ cl.playernum+1. I've undone my +1 removals.
This commit is contained in:
parent
6cf291e970
commit
1603855e58
5 changed files with 10 additions and 9 deletions
|
@ -1318,7 +1318,7 @@ void CL_RelinkEntities (void)
|
|||
|
||||
ent->forcelink = false;
|
||||
|
||||
if (i == cl.playernum && !cl_chasecam->value)
|
||||
if (i == cl.playernum + 1 && !cl_chasecam->value)
|
||||
continue;
|
||||
|
||||
#ifdef QUAKE2
|
||||
|
|
|
@ -453,11 +453,11 @@ CL_UpdateBeams (void)
|
|||
continue;
|
||||
|
||||
// if coming from the player, update the start position
|
||||
if (b->entity == cl.playernum) {
|
||||
if (b->entity == cl.playernum + 1) {
|
||||
#ifdef QUAKEWORLD
|
||||
VectorCopy (cl.simorg, b->start);
|
||||
#elif UQUAKE
|
||||
VectorCopy (cl_entities[cl.playernum].origin,
|
||||
VectorCopy (cl_entities[cl.playernum + 1].origin,
|
||||
b->start);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -619,7 +619,7 @@ void R_DrawEntitiesOnList (void)
|
|||
{
|
||||
currententity = &cl_visedicts[i];
|
||||
#ifdef UQUAKE
|
||||
if (currententity == &cl_entities[cl.playernum])
|
||||
if (currententity == &cl_entities[cl.playernum + 1])
|
||||
continue; // don't draw the player
|
||||
#endif // QUAKEWORLD
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ V_ParseDamage ( void )
|
|||
#ifdef QUAKEWORLD
|
||||
VectorSubtract (from, cl.simorg, from);
|
||||
#else
|
||||
ent = &cl_entities[cl.playernum];
|
||||
ent = &cl_entities[cl.playernum + 1];
|
||||
|
||||
VectorSubtract (from, ent->origin, from);
|
||||
#endif
|
||||
|
@ -615,7 +615,7 @@ V_BoundOffsets ( void )
|
|||
#ifdef UQUAKE
|
||||
entity_t *ent;
|
||||
|
||||
ent = &cl_entities[cl.playernum];
|
||||
ent = &cl_entities[cl.playernum + 1];
|
||||
#endif
|
||||
|
||||
#ifdef QUAKEWORLD
|
||||
|
@ -679,7 +679,7 @@ V_CalcViewRoll (void)
|
|||
#ifdef QUAKEWORLD
|
||||
side = V_CalcRoll (cl.simangles, cl.simvel);
|
||||
#else
|
||||
side = V_CalcRoll (cl_entities[cl.playernum].angles, cl.velocity);
|
||||
side = V_CalcRoll (cl_entities[cl.playernum + 1].angles, cl.velocity);
|
||||
#endif
|
||||
r_refdef.viewangles[ROLL] += side;
|
||||
|
||||
|
@ -716,7 +716,7 @@ V_CalcIntermissionRefdef ( void )
|
|||
// view is the weapon model
|
||||
#ifdef UQUAKE
|
||||
// ent is the player model (visible when out of body)
|
||||
ent = &cl_entities[cl.playernum];
|
||||
ent = &cl_entities[cl.playernum + 1];
|
||||
// view is the weapon model (only visible from inside body)
|
||||
#endif
|
||||
view = &cl.viewent;
|
||||
|
@ -761,7 +761,7 @@ V_CalcRefdef ( void )
|
|||
|
||||
#ifdef UQUAKE
|
||||
// ent is the player model (visible when out of body)
|
||||
ent = &cl_entities[cl.playernum];
|
||||
ent = &cl_entities[cl.playernum + 1];
|
||||
#endif
|
||||
// view is the weapon model (only visible from inside body)
|
||||
view = &cl.viewent;
|
||||
|
|
|
@ -642,6 +642,7 @@ void CL_ParseServerMessage (void)
|
|||
|
||||
case svc_setview:
|
||||
cl.playernum = MSG_ReadShort ();
|
||||
cl.playernum--;
|
||||
break;
|
||||
|
||||
case svc_lightstyle:
|
||||
|
|
Loading…
Reference in a new issue