mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 05:21:58 +00:00
white space
This commit is contained in:
parent
911d38e5e5
commit
16b2c798f0
1 changed files with 16 additions and 8 deletions
|
@ -1344,13 +1344,15 @@ AddAllEntsToPmove (void)
|
||||||
|
|
||||||
pl = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
pl = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
||||||
check = NEXT_EDICT (&sv_pr_state, sv.edicts);
|
check = NEXT_EDICT (&sv_pr_state, sv.edicts);
|
||||||
for (e = 1; e < sv.num_edicts; e++, check = NEXT_EDICT (&sv_pr_state, check)) {
|
for (e = 1; e < sv.num_edicts; e++,
|
||||||
|
check = NEXT_EDICT (&sv_pr_state, check)) {
|
||||||
if (check->free)
|
if (check->free)
|
||||||
continue;
|
continue;
|
||||||
if (check->v.v.owner == pl)
|
if (check->v.v.owner == pl)
|
||||||
continue;
|
continue;
|
||||||
if (check->v.v.solid == SOLID_BSP
|
if (check->v.v.solid == SOLID_BSP
|
||||||
|| check->v.v.solid == SOLID_BBOX || check->v.v.solid == SOLID_SLIDEBOX) {
|
|| check->v.v.solid == SOLID_BBOX
|
||||||
|
|| check->v.v.solid == SOLID_SLIDEBOX) {
|
||||||
if (check == sv_player)
|
if (check == sv_player)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -1483,15 +1485,18 @@ SV_RunCmd (usercmd_t *ucmd, qboolean inside)
|
||||||
sv_pr_state.pr_global_struct->frametime = sv_frametime;
|
sv_pr_state.pr_global_struct->frametime = sv_frametime;
|
||||||
|
|
||||||
sv_pr_state.pr_global_struct->time = sv.time;
|
sv_pr_state.pr_global_struct->time = sv.time;
|
||||||
sv_pr_state.pr_global_struct->self = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
sv_pr_state.pr_global_struct->self = EDICT_TO_PROG (&sv_pr_state,
|
||||||
PR_ExecuteProgram (&sv_pr_state, sv_pr_state.pr_global_struct->PlayerPreThink);
|
sv_player);
|
||||||
|
PR_ExecuteProgram (&sv_pr_state,
|
||||||
|
sv_pr_state.pr_global_struct->PlayerPreThink);
|
||||||
|
|
||||||
SV_RunThink (sv_player);
|
SV_RunThink (sv_player);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
pmove.origin[i] =
|
pmove.origin[i] =
|
||||||
sv_player->v.v.origin[i] + (sv_player->v.v.mins[i] - player_mins[i]);
|
sv_player->v.v.origin[i]
|
||||||
|
+ (sv_player->v.v.mins[i] - player_mins[i]);
|
||||||
VectorCopy (sv_player->v.v.velocity, pmove.velocity);
|
VectorCopy (sv_player->v.v.velocity, pmove.velocity);
|
||||||
VectorCopy (sv_player->v.v.v_angle, pmove.angles);
|
VectorCopy (sv_player->v.v.v_angle, pmove.angles);
|
||||||
|
|
||||||
|
@ -1589,12 +1594,15 @@ SV_PostRunCmd (void)
|
||||||
|
|
||||||
if (!host_client->spectator) {
|
if (!host_client->spectator) {
|
||||||
sv_pr_state.pr_global_struct->time = sv.time;
|
sv_pr_state.pr_global_struct->time = sv.time;
|
||||||
sv_pr_state.pr_global_struct->self = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
sv_pr_state.pr_global_struct->self = EDICT_TO_PROG (&sv_pr_state,
|
||||||
PR_ExecuteProgram (&sv_pr_state, sv_pr_state.pr_global_struct->PlayerPostThink);
|
sv_player);
|
||||||
|
PR_ExecuteProgram (&sv_pr_state,
|
||||||
|
sv_pr_state.pr_global_struct->PlayerPostThink);
|
||||||
SV_RunNewmis ();
|
SV_RunNewmis ();
|
||||||
} else if (SpectatorThink) {
|
} else if (SpectatorThink) {
|
||||||
sv_pr_state.pr_global_struct->time = sv.time;
|
sv_pr_state.pr_global_struct->time = sv.time;
|
||||||
sv_pr_state.pr_global_struct->self = EDICT_TO_PROG (&sv_pr_state, sv_player);
|
sv_pr_state.pr_global_struct->self = EDICT_TO_PROG (&sv_pr_state,
|
||||||
|
sv_player);
|
||||||
PR_ExecuteProgram (&sv_pr_state, SpectatorThink);
|
PR_ExecuteProgram (&sv_pr_state, SpectatorThink);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue