mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
some diff cleanups: use cl.viewentity instead of cl.playernum + 1 and some
white space
This commit is contained in:
parent
63a4cc271f
commit
e07f91155b
2 changed files with 2 additions and 3 deletions
|
@ -372,7 +372,7 @@ CL_UpdateBeams (void)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// if coming from the player, update the start position
|
// if coming from the player, update the start position
|
||||||
if (b->entity == cl.playernum + 1) { // entity 0 is the world
|
if (b->entity == cl.viewentity) {
|
||||||
VectorCopy (cl.simorg, b->start);
|
VectorCopy (cl.simorg, b->start);
|
||||||
}
|
}
|
||||||
// calculate pitch and yaw
|
// calculate pitch and yaw
|
||||||
|
|
|
@ -168,8 +168,7 @@ R_SplitEntityOnNode2 (mnode_t *node)
|
||||||
if (node->contents < 0) {
|
if (node->contents < 0) {
|
||||||
if (node->contents != CONTENTS_SOLID)
|
if (node->contents != CONTENTS_SOLID)
|
||||||
r_pefragtopnode = node; // we've reached a non-solid leaf, so
|
r_pefragtopnode = node; // we've reached a non-solid leaf, so
|
||||||
// it's
|
// it's visible and not BSP clipped
|
||||||
// visible and not BSP clipped
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue