Check the correct backside for textures, then go back to front textures.

This commit is contained in:
spherallic 2022-10-09 18:53:34 +02:00
parent cd85240ec3
commit 81b1526c2c

View file

@ -2906,8 +2906,8 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
if (always || this->bottomtexture) this->bottomtexture = set->bottomtexture;
}
if (line->args[3] && lines[linenum].sidenum[1] != 0xffff)
set = &sides[line->sidenum[1]]; // Use back side textures
if (line->args[3] && line->sidenum[1] != 0xffff)
set = &sides[line->sidenum[1]]; // Use back side textures for target's back side
// Back side
if (line->args[1] != TMSD_FRONT && lines[linenum].sidenum[1] != 0xffff)
@ -2917,6 +2917,8 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
if (always || this->midtexture) this->midtexture = set->midtexture;
if (always || this->bottomtexture) this->bottomtexture = set->bottomtexture;
}
set = &sides[line->sidenum[0]]; // Go back to front side textures
}
}
break;