mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
Fix intermission camera angles during demo playback
(see https://github.com/sezero/quakespasm/issues/18)
This commit is contained in:
parent
ec49ef2441
commit
14b7338946
3 changed files with 18 additions and 0 deletions
|
@ -1188,6 +1188,7 @@ void CL_ParseServerMessage (void)
|
||||||
cl.intermission = 1;
|
cl.intermission = 1;
|
||||||
cl.completed_time = cl.time;
|
cl.completed_time = cl.time;
|
||||||
vid.recalc_refdef = true; // go to full screen
|
vid.recalc_refdef = true; // go to full screen
|
||||||
|
V_RestoreAngles ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case svc_finale:
|
case svc_finale:
|
||||||
|
@ -1199,6 +1200,7 @@ void CL_ParseServerMessage (void)
|
||||||
SCR_CenterPrint (str);
|
SCR_CenterPrint (str);
|
||||||
Con_LogCenterPrint (str);
|
Con_LogCenterPrint (str);
|
||||||
//johnfitz
|
//johnfitz
|
||||||
|
V_RestoreAngles ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case svc_cutscene:
|
case svc_cutscene:
|
||||||
|
@ -1210,6 +1212,7 @@ void CL_ParseServerMessage (void)
|
||||||
SCR_CenterPrint (str);
|
SCR_CenterPrint (str);
|
||||||
Con_LogCenterPrint (str);
|
Con_LogCenterPrint (str);
|
||||||
//johnfitz
|
//johnfitz
|
||||||
|
V_RestoreAngles ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case svc_sellscreen:
|
case svc_sellscreen:
|
||||||
|
|
14
Quake/view.c
14
Quake/view.c
|
@ -870,6 +870,20 @@ void V_CalcRefdef (void)
|
||||||
Chase_UpdateForDrawing (); //johnfitz
|
Chase_UpdateForDrawing (); //johnfitz
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
==================
|
||||||
|
V_RestoreAngles
|
||||||
|
|
||||||
|
Resets the viewentity angles to the last values received from the server
|
||||||
|
(undoing the manual adjustments performed by V_CalcRefdef)
|
||||||
|
==================
|
||||||
|
*/
|
||||||
|
void V_RestoreAngles (void)
|
||||||
|
{
|
||||||
|
entity_t *ent = &cl_entities[cl.viewentity];
|
||||||
|
VectorCopy (ent->msg_angles[0], ent->angles);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==================
|
==================
|
||||||
V_RenderView
|
V_RenderView
|
||||||
|
|
|
@ -33,6 +33,7 @@ void V_RenderView (void);
|
||||||
void V_CalcBlend (void);
|
void V_CalcBlend (void);
|
||||||
void V_UpdateBlend (void);
|
void V_UpdateBlend (void);
|
||||||
float V_CalcRoll (vec3_t angles, vec3_t velocity);
|
float V_CalcRoll (vec3_t angles, vec3_t velocity);
|
||||||
|
void V_RestoreAngles (void);
|
||||||
//void V_UpdatePalette (void); //johnfitz
|
//void V_UpdatePalette (void); //johnfitz
|
||||||
|
|
||||||
#endif /* _QUAKE_VIEW_H */
|
#endif /* _QUAKE_VIEW_H */
|
||||||
|
|
Loading…
Reference in a new issue