- scriptified the last remaining definition (BTSX MAP12 beta)

- Changes to map geometry must force a node rebuild (SetVertex, SetLineSectorRef.)
- fixed incorrect use of scaling constant in SetWallYScale.
This commit is contained in:
Christoph Oelckers 2018-04-11 19:10:15 +02:00
parent 6631f208b1
commit 3988e27059
3 changed files with 21 additions and 18 deletions

View file

@ -104,6 +104,7 @@ enum
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
extern TArray<FMapThing> MapThingsConverted;
extern bool ForceNodeBuild;
// PUBLIC DATA DEFINITIONS -------------------------------------------------
@ -853,6 +854,7 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetVertex)
{
level.vertexes[vertex].p = DVector2(x, y);
}
ForceNodeBuild = true;
return 0;
}
@ -872,6 +874,7 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetLineSectorRef)
side->sector = &level.sectors[sectoridx];
}
}
ForceNodeBuild = true;
return 0;
}

View file

@ -194,7 +194,7 @@ B9DFF13207EACAC675C71D82624D0007 // XtheaterIII map01
D0139194F7817BF06F3988DFC47DB38D // Whispers of Satan map29
{
nopassover
nopassover
}
5397C3B7D9B33AAF526D15A81A762828 // daedalus.wad Travel tubes (they are all identical)
@ -249,19 +249,3 @@ DC96228097DD004C40CCB1DB14A91EAA // unloved.pk3:unlovedmaps.wad map05
setslopeoverflow
polyobj
}
712BB4CFBD0753178CA0C6814BE4C288 // map12 BTSX_E1 - patch some rendering glitches that are problematic to detect
{
setsectortag 545 32000
setsectortag 1618 32000
setlinespecial 2853 Sector_Set3DFloor 32000 4 0 0 0
setsectortag 439 32001
setsectortag 458 32001
setlinespecial 2182 Sector_Set3DFloor 32001 4 0 0 0
setsectortag 454 32002
setsectortag 910 32002
setlinespecial 2410 Sector_Set3DFloor 32002 4 1 0 0
}

View file

@ -572,7 +572,23 @@ class LevelCompatibility play
SetLineSectorRef(329, Line.front, 74);
AddSectorTag(74, 4);
SetLineSpecial(357, Transfer_Heights, 4, 2);
break;
}
case '712BB4CFBD0753178CA0C6814BE4C288': // beta version of map12 BTSX_E1 - patch some rendering glitches that are problematic to detect
{
AddSectorTag(545, 32000);
AddSectorTag(1618, 32000);
SetLineSpecial(2853, Sector_Set3DFloor, 32000, 4);
AddSectorTag(439, 32001);
AddSectorTag(458, 32001);
SetLineSpecial(2182, Sector_Set3DFloor, 32001, 4);
AddSectorTag(454, 32002);
AddSectorTag(910, 32002);
SetLineSpecial(2410, Sector_Set3DFloor, 32002, 4, 1);
break;
}
}
}
@ -642,6 +658,6 @@ class LevelCompatibility play
private static void SetWallYScale(int line, int side, int texpart, double scale)
{
level.lines[line].sidedef[side].SetTextureYScale(texpart, 1.090909);
level.lines[line].sidedef[side].SetTextureYScale(texpart, scale);
}
}