From 6a150f724819b512c908650e668e7112f961b47d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 2 Apr 2016 20:19:07 +0200 Subject: [PATCH] - fixed seg vertex adjustment (from a commit that wasn't copied to this branch.) and added viewx etc. to a global header . --- src/p_setup.cpp | 8 ++++---- src/r_utility.h | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index fad06ce15..17cbb9911 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -1324,15 +1324,15 @@ void P_LoadSegs (MapData * map) if ((vnum2 > vnum1) && (vertchanged[vnum2] == 0)) { li->v2->set( - li->v1->fX() + dis * dx, - li->v1->fY() + dis * dy); + li->v1->fX() + dis * delta.X, + li->v1->fY() + dis * delta.Y); vertchanged[vnum2] = 1; // this was changed } else if (vertchanged[vnum1] == 0) { li->v1->set( - li->v2->fX() - dis * dx, - li->v2->fY() - dis * dy); + li->v2->fX() - dis * delta.X, + li->v2->fY() - dis * delta.Y); vertchanged[vnum1] = 1; // this was changed } } diff --git a/src/r_utility.h b/src/r_utility.h index 0a63b3f66..9e2ccf3cf 100644 --- a/src/r_utility.h +++ b/src/r_utility.h @@ -16,6 +16,10 @@ extern DVector3 ViewPos; extern DAngle ViewAngle; extern DAngle ViewPitch; +extern fixed_t viewx, viewy, viewz; +extern angle_t viewangle; +extern int viewpitch; + extern "C" int centerx, centerxwide; extern "C" int centery;