mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-27 06:22:27 +00:00
Post-vid_restart menu
This commit is contained in:
parent
12e3144acc
commit
b16a94f91b
1 changed files with 10 additions and 1 deletions
|
@ -53,6 +53,8 @@ static void CG_ResetEntity(centity_t * cent)
|
|||
if (cent->currentState.eType == ET_PLAYER) {
|
||||
CG_ResetPlayerEntity(cent);
|
||||
}
|
||||
|
||||
CG_EvaluateTrajectoryEx(cent, cg.snap->serverTime, cent->lerpOrigin, cent->lerpAngles);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -110,6 +112,11 @@ static void CG_OrderSnapshotEntities(snapshot_t *snap, int *order)
|
|||
}
|
||||
}
|
||||
|
||||
static void CG_CheckVidRestart()
|
||||
{
|
||||
trap_SendConsoleCommand("ui_RQ3_postVidRestart");
|
||||
}
|
||||
|
||||
/*
|
||||
==================
|
||||
CG_SetInitialSnapshot
|
||||
|
@ -143,7 +150,7 @@ void CG_SetInitialSnapshot(snapshot_t * snap)
|
|||
CG_Respawn();
|
||||
|
||||
for (i = 0; i < cg.snap->numEntities; i++) {
|
||||
state = &cg.snap->entities[i];
|
||||
state = &cg.snap->entities[cg_snapEntityOrder[i]];
|
||||
cent = &cg_entities[state->number];
|
||||
|
||||
memcpy(¢->currentState, state, sizeof(entityState_t));
|
||||
|
@ -156,6 +163,8 @@ void CG_SetInitialSnapshot(snapshot_t * snap)
|
|||
// check for events
|
||||
CG_CheckEvents(cent);
|
||||
}
|
||||
|
||||
CG_CheckVidRestart();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue