- 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:
Christoph Oelckers 2016-04-02 20:19:07 +02:00
commit 6a150f7248
2 changed files with 8 additions and 4 deletions

View file

@ -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
}
}