Copy text to stringarg[0] for ACS linedefs

Allows them to be used in Zone Builder binary maps
This commit is contained in:
Sally Coolatta 2022-12-27 17:37:29 -05:00
parent a252e75ba7
commit 0543c0daa5

View file

@ -5422,6 +5422,16 @@ static void P_ConvertBinaryLinedefTypes(void)
lines[i].args[2] = TML_SECTOR;
lines[i].args[3] = !!(lines[i].flags & ML_MIDPEG);
break;
case 475: // ACS funcs
case 476:
case 477:
case 478:
if (sides[lines[i].sidenum[0]].text)
{
lines[i].stringargs[0] = Z_Malloc(strlen(sides[lines[i].sidenum[0]].text) + 1, PU_LEVEL, NULL);
M_Memcpy(lines[i].stringargs[0], sides[lines[i].sidenum[0]].text, strlen(sides[lines[i].sidenum[0]].text) + 1);
}
break;
case 480: //Polyobject - door slide
lines[i].args[0] = tag;
lines[i].args[1] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;