diff --git a/src/p_setup.cpp b/src/p_setup.cpp index fad06ce15a..17cbb99119 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 0a63b3f669..9e2ccf3cf1 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;