From e07f91155b4612a360838534c23b390ff6530507 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 15 May 2001 19:38:01 +0000 Subject: [PATCH] some diff cleanups: use cl.viewentity instead of cl.playernum + 1 and some white space --- qw/source/cl_tent.c | 2 +- qw/source/r_efrag.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qw/source/cl_tent.c b/qw/source/cl_tent.c index 47f500f9f..91f8b827b 100644 --- a/qw/source/cl_tent.c +++ b/qw/source/cl_tent.c @@ -372,7 +372,7 @@ CL_UpdateBeams (void) continue; // 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); } // calculate pitch and yaw diff --git a/qw/source/r_efrag.c b/qw/source/r_efrag.c index c6a4ab887..623435bc8 100644 --- a/qw/source/r_efrag.c +++ b/qw/source/r_efrag.c @@ -168,8 +168,7 @@ R_SplitEntityOnNode2 (mnode_t *node) if (node->contents < 0) { if (node->contents != CONTENTS_SOLID) r_pefragtopnode = node; // we've reached a non-solid leaf, so - // it's - // visible and not BSP clipped + // it's visible and not BSP clipped return; }