fixed: Skewing to front and back floor was swapped.

This commit is contained in:
Professor Hastig 2023-11-02 07:18:15 +01:00 committed by Christoph Oelckers
parent 5d12598409
commit 677e1c888b

View file

@ -2295,10 +2295,10 @@ void HWWall::Process(HWWallDispatcher *di, seg_t *seg, sector_t * frontsector, s
skew = bch2 - bch1;
break;
case side_t::skew_front_floor:
skew = bfh2 - bfh1;
skew = ffh2 - ffh1;
break;
case side_t::skew_back_floor:
skew = ffh2 - ffh1;
skew = bfh2 - bfh1;
break;
}
DoTexture(di, RENDERWALL_TOP, seg, (seg->linedef->flags & (ML_DONTPEGTOP)) == 0,
@ -2366,10 +2366,10 @@ void HWWall::Process(HWWallDispatcher *di, seg_t *seg, sector_t * frontsector, s
skew = bch2 - bch1;
break;
case side_t::skew_front_floor:
skew = bfh2 - bfh1;
skew = ffh2 - ffh1;
break;
case side_t::skew_back_floor:
skew = ffh2 - ffh1;
skew = bfh2 - bfh1;
break;
}
@ -2436,10 +2436,10 @@ void HWWall::Process(HWWallDispatcher *di, seg_t *seg, sector_t * frontsector, s
skew = bch2 - bch1;
break;
case side_t::skew_front_floor:
skew = bfh2a - bfh1a;
skew = ffh2 - ffh1;
break;
case side_t::skew_back_floor:
skew = ffh2 - ffh1;
skew = bfh2a - bfh1a;
break;
}