mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed seg vertex adjustment (from a commit that wasn't copied to this branch.) and added viewx etc. to a global header .
This commit is contained in:
parent
3db90ff4c1
commit
6a150f7248
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue