mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-08 01:02:25 +00:00
Move Line 449 to Line 459; allow post exec tag by either Back X offset or line tag
This commit is contained in:
parent
6356a6cf2e
commit
722da815ea
1 changed files with 21 additions and 21 deletions
42
src/p_spec.c
42
src/p_spec.c
|
@ -3456,27 +3456,6 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 449: // Control Text Prompt
|
|
||||||
// console player only unless NOCLIMB is set
|
|
||||||
if ((line->flags & ML_NOCLIMB) || (mo && mo->player && P_IsLocalPlayer(mo->player)))
|
|
||||||
{
|
|
||||||
INT32 promptnum = max(0, (sides[line->sidenum[0]].textureoffset>>FRACBITS)-1);
|
|
||||||
INT32 pagenum = max(0, (sides[line->sidenum[0]].rowoffset>>FRACBITS)-1);
|
|
||||||
INT32 postexectag = line->tag;
|
|
||||||
|
|
||||||
boolean closetextprompt = (line->flags & ML_BLOCKMONSTERS);
|
|
||||||
boolean runpostexec = (line->flags & ML_EFFECT1);
|
|
||||||
boolean blockcontrols = !(line->flags & ML_EFFECT2);
|
|
||||||
boolean freezerealtime = !(line->flags & ML_EFFECT3);
|
|
||||||
//boolean freezethinkers = (line->flags & ML_EFFECT4);
|
|
||||||
|
|
||||||
if (closetextprompt)
|
|
||||||
F_EndTextPrompt();
|
|
||||||
else
|
|
||||||
F_StartTextPrompt(promptnum, pagenum, mo, runpostexec ? postexectag : 0, blockcontrols, freezerealtime);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 450: // Execute Linedef Executor - for recursion
|
case 450: // Execute Linedef Executor - for recursion
|
||||||
P_LinedefExecute(line->tag, mo, NULL);
|
P_LinedefExecute(line->tag, mo, NULL);
|
||||||
break;
|
break;
|
||||||
|
@ -3779,6 +3758,27 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
||||||
P_ResetColormapFader(§ors[secnum]);
|
P_ResetColormapFader(§ors[secnum]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 459: // Control Text Prompt
|
||||||
|
// console player only unless NOCLIMB is set
|
||||||
|
if ((line->flags & ML_NOCLIMB) || (mo && mo->player && P_IsLocalPlayer(mo->player)))
|
||||||
|
{
|
||||||
|
INT32 promptnum = max(0, (sides[line->sidenum[0]].textureoffset>>FRACBITS)-1);
|
||||||
|
INT32 pagenum = max(0, (sides[line->sidenum[0]].rowoffset>>FRACBITS)-1);
|
||||||
|
INT32 postexectag = abs((line->sidenum[1] != 0xFFFF) ? sides[line->sidenum[1]].textureoffset>>FRACBITS : line->tag);
|
||||||
|
|
||||||
|
boolean closetextprompt = (line->flags & ML_BLOCKMONSTERS);
|
||||||
|
boolean runpostexec = (line->flags & ML_EFFECT1);
|
||||||
|
boolean blockcontrols = !(line->flags & ML_EFFECT2);
|
||||||
|
boolean freezerealtime = !(line->flags & ML_EFFECT3);
|
||||||
|
//boolean freezethinkers = (line->flags & ML_EFFECT4);
|
||||||
|
|
||||||
|
if (closetextprompt)
|
||||||
|
F_EndTextPrompt();
|
||||||
|
else
|
||||||
|
F_StartTextPrompt(promptnum, pagenum, mo, runpostexec ? postexectag : 0, blockcontrols, freezerealtime);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
#ifdef POLYOBJECTS
|
#ifdef POLYOBJECTS
|
||||||
case 480: // Polyobj_DoorSlide
|
case 480: // Polyobj_DoorSlide
|
||||||
case 481: // Polyobj_DoorSwing
|
case 481: // Polyobj_DoorSwing
|
||||||
|
|
Loading…
Reference in a new issue