mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
|
|
class LevelCompatibility play
|
|
{
|
|
private static void Apply(Name checksum)
|
|
{
|
|
switch (checksum)
|
|
{
|
|
case 'AB24AE6E2CB13CBDD04600A4D37F9189': // doom2.wad map02
|
|
case '1EC0AF1E3985650F0C9000319C599D0C': // doom2bfg.wad map02
|
|
{
|
|
// Missing textures
|
|
TextureID stone4 = TexMan.CheckForTexture("STONE4", TexMan.Type_Wall);
|
|
SetWallTextureID(327, Line.front, Side.bottom, stone4);
|
|
SetWallTextureID(328, Line.front, Side.bottom, stone4);
|
|
SetWallTextureID(338, Line.front, Side.bottom, stone4);
|
|
SetWallTextureID(339, Line.front, Side.bottom, stone4);
|
|
break;
|
|
}
|
|
|
|
case '66C46385EB1A23D60839D1532522076B': // doom2.wad map08
|
|
{
|
|
// Missing texture
|
|
SetWallTexture(101, Line.back, Side.top, "BRICK7");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
private static void SetWallTexture(int line, int side, int texpart, String texture)
|
|
{
|
|
SetWallTextureID(line, side, texpart, TexMan.CheckForTexture(texture, TexMan.Type_Wall));
|
|
}
|
|
|
|
private static void SetWallTextureID(int line, int side, int texpart, TextureID texture)
|
|
{
|
|
level.Lines[line].sidedef[side].SetTexture(texpart, texture);
|
|
}
|
|
|
|
private static void SetSectorSpecial(int sectornum, int special)
|
|
{
|
|
level.sectors[sectornum].special = special;
|
|
}
|
|
}
|