From b7294e45a12e3133d0ef90c24eb9274a7202e48a Mon Sep 17 00:00:00 2001 From: nukeykt Date: Sun, 29 Mar 2020 01:04:13 +0900 Subject: [PATCH] Blood : Fix mirror issue Fixes #334 and #338 # Conflicts: # source/blood/src/menu.cpp --- source/blood/src/mirrors.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/blood/src/mirrors.cpp b/source/blood/src/mirrors.cpp index e1394f26b..eacd4af01 100644 --- a/source/blood/src/mirrors.cpp +++ b/source/blood/src/mirrors.cpp @@ -488,6 +488,14 @@ static MirrorLoadSave *myLoadSave; 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(&mirrorsector,sizeof(mirrorsector)); Read(mirror, sizeof(mirror)); @@ -502,10 +510,10 @@ void MirrorLoadSave::Load(void) { wall[mirrorwall[i]].picnum = 504; wall[mirrorwall[i]].overpicnum = 504; - wall[mirrorwall[i]].point2 = numwalls; wall[mirrorwall[i]].cstat = 0; wall[mirrorwall[i]].nextsector = -1; wall[mirrorwall[i]].nextwall = -1; + wall[mirrorwall[i]].point2 = numwalls+i+1; } wall[mirrorwall[3]].point2 = mirrorwall[0]; sector[mirrorsector].ceilingpicnum = 504;