Blood : Fix mirror issue

Fixes #334 and #338

# Conflicts:
#	source/blood/src/menu.cpp
This commit is contained in:
nukeykt 2020-03-29 01:04:13 +09:00 committed by Christoph Oelckers
parent aee64e8e34
commit b7294e45a1

View file

@ -488,6 +488,14 @@ static MirrorLoadSave *myLoadSave;
void MirrorLoadSave::Load(void) void MirrorLoadSave::Load(void)
{ {
#ifdef USE_OPENGL
r_rortexture = 4080;
r_rortexturerange = 16;
#ifdef POLYMER
polymer_setrorcallback(PolymerRORCallback);
#endif // POLYMER
#endif
Read(&mirrorcnt,sizeof(mirrorcnt)); Read(&mirrorcnt,sizeof(mirrorcnt));
Read(&mirrorsector,sizeof(mirrorsector)); Read(&mirrorsector,sizeof(mirrorsector));
Read(mirror, sizeof(mirror)); Read(mirror, sizeof(mirror));
@ -502,10 +510,10 @@ void MirrorLoadSave::Load(void)
{ {
wall[mirrorwall[i]].picnum = 504; wall[mirrorwall[i]].picnum = 504;
wall[mirrorwall[i]].overpicnum = 504; wall[mirrorwall[i]].overpicnum = 504;
wall[mirrorwall[i]].point2 = numwalls;
wall[mirrorwall[i]].cstat = 0; wall[mirrorwall[i]].cstat = 0;
wall[mirrorwall[i]].nextsector = -1; wall[mirrorwall[i]].nextsector = -1;
wall[mirrorwall[i]].nextwall = -1; wall[mirrorwall[i]].nextwall = -1;
wall[mirrorwall[i]].point2 = numwalls+i+1;
} }
wall[mirrorwall[3]].point2 = mirrorwall[0]; wall[mirrorwall[3]].point2 = mirrorwall[0];
sector[mirrorsector].ceilingpicnum = 504; sector[mirrorsector].ceilingpicnum = 504;