From dce0dca850ce22f19250c563dedafa7fbdc8bf69 Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Sun, 5 Apr 2026 20:18:00 +0200 Subject: [PATCH] Restore binary conversion for linedef special 415 --- src/p_setup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/p_setup.c b/src/p_setup.c index da5a04c1d..1c8e87898 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -6166,6 +6166,14 @@ static void P_ConvertBinaryLinedefTypes(void) } P_WriteDuplicateText(sides[lines[i].sidenum[0]].text, &lines[i].stringargs[0]); break; + case 415: //Run script + if (strlen(G_BuildMapName(gamemap)) != 5) + break; // good enough check methinks + INT32 scrnum = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS; + if (scrnum < 0 || scrnum > 999) + scrnum = 0; + P_WriteDuplicateText(va("SCR%s%03u", G_BuildMapName(gamemap) + 3, scrnum), &lines[i].stringargs[0]); + break; case 416: //Start adjustable flickering light case 417: //Start adjustable pulsating light case 602: //Adjustable pulsating light