mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
mvd playback fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@582 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f63916139d
commit
36aa923e2e
1 changed files with 7 additions and 1 deletions
|
@ -3508,6 +3508,12 @@ void AddAllEntsToPmove (void)
|
||||||
|
|
||||||
int SV_PMTypeForClient (client_t *cl)
|
int SV_PMTypeForClient (client_t *cl)
|
||||||
{
|
{
|
||||||
|
if (sv.demostatevalid)
|
||||||
|
{ //force noclip... This does create problems for closing demos.
|
||||||
|
if (cl->zquake_extensions & Z_EXT_PM_TYPE_NEW)
|
||||||
|
return PM_SPECTATOR;
|
||||||
|
return PM_OLD_SPECTATOR;
|
||||||
|
}
|
||||||
if (cl->edict->v.movetype == MOVETYPE_NOCLIP)
|
if (cl->edict->v.movetype == MOVETYPE_NOCLIP)
|
||||||
{
|
{
|
||||||
if (cl->zquake_extensions & Z_EXT_PM_TYPE_NEW)
|
if (cl->zquake_extensions & Z_EXT_PM_TYPE_NEW)
|
||||||
|
@ -4139,7 +4145,7 @@ haveannothergo:
|
||||||
o[1] = MSG_ReadCoord();
|
o[1] = MSG_ReadCoord();
|
||||||
o[2] = MSG_ReadCoord();
|
o[2] = MSG_ReadCoord();
|
||||||
// only allowed by spectators
|
// only allowed by spectators
|
||||||
if (host_client->spectator) {
|
if (host_client->spectator||sv.mvdplayback) {
|
||||||
VectorCopy(o, sv_player->v.origin);
|
VectorCopy(o, sv_player->v.origin);
|
||||||
SV_LinkEdict(sv_player, false);
|
SV_LinkEdict(sv_player, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue