mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Fix dynamic slopes not working right in some cases
This commit is contained in:
parent
6694480f68
commit
10ba850871
1 changed files with 4 additions and 0 deletions
|
@ -64,15 +64,19 @@ void P_RunDynamicSlopes(void) {
|
||||||
switch(slope->refpos) {
|
switch(slope->refpos) {
|
||||||
case 1: // front floor
|
case 1: // front floor
|
||||||
zdelta = slope->sourceline->backsector->floorheight - slope->sourceline->frontsector->floorheight;
|
zdelta = slope->sourceline->backsector->floorheight - slope->sourceline->frontsector->floorheight;
|
||||||
|
slope->o.z = slope->sourceline->frontsector->floorheight;
|
||||||
break;
|
break;
|
||||||
case 2: // front ceiling
|
case 2: // front ceiling
|
||||||
zdelta = slope->sourceline->backsector->ceilingheight - slope->sourceline->frontsector->ceilingheight;
|
zdelta = slope->sourceline->backsector->ceilingheight - slope->sourceline->frontsector->ceilingheight;
|
||||||
|
slope->o.z = slope->sourceline->frontsector->ceilingheight;
|
||||||
break;
|
break;
|
||||||
case 3: // back floor
|
case 3: // back floor
|
||||||
zdelta = slope->sourceline->frontsector->floorheight - slope->sourceline->backsector->floorheight;
|
zdelta = slope->sourceline->frontsector->floorheight - slope->sourceline->backsector->floorheight;
|
||||||
|
slope->o.z = slope->sourceline->backsector->floorheight;
|
||||||
break;
|
break;
|
||||||
case 4: // back ceiling
|
case 4: // back ceiling
|
||||||
zdelta = slope->sourceline->frontsector->ceilingheight - slope->sourceline->backsector->ceilingheight;
|
zdelta = slope->sourceline->frontsector->ceilingheight - slope->sourceline->backsector->ceilingheight;
|
||||||
|
slope->o.z = slope->sourceline->backsector->ceilingheight;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue