mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-24 00:42:32 +00:00
Copy text to stringarg[0] for ACS linedefs
Allows them to be used in Zone Builder binary maps
This commit is contained in:
parent
a252e75ba7
commit
0543c0daa5
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue